3 ms·
If you have any async JS, that's going to seriously complicate things. Theres no AST mapping for that (python async is not the same). Pitfalls to watch our for
by huem0n 2y ago
If you have any async JS, that's going to seriously complicate things. Theres no AST mapping for that (python async is not the same).
Pitfalls to watch our for? Tons of them. Comparison is very different, modulus is different, .sort is different, object destructuring doesn't map nicely to python, lambda's won't map nicely to python, promises won't map to python. Labelled loops won't map nicely to python.
If your JS snippets are truly simple, just LLM translate and manually check. They're pretty good at the simple stuff.