3 ms·
TypeScript:JS is a lot like mypy:Python; the only real difference is that Python adapted so that mypy (originally envisioned as its own language) code is also v
by dragonwriter 5y ago
TypeScript:JS is a lot like mypy:Python; the only real difference is that Python adapted so that mypy (originally envisioned as its own language) code is also valid Python as well as the reverse, obviating the need for a compilation step to run mypy in the Python runtime (whereas TS has to compile to JS to run); also, mypy has mypyc to compile (currently, only a subset of) mypy code to something more efficient than normal python.
- whimsicalism 5y agoHaving worked extensively with both, I don't think this is an apt comparison. Type inference & hinting at the IDE level is just not as developed either
- takeda 5y agoWhich language did you mean? Also in any case wouldn't that be IDE issue. I used Python and I noticed over the years that things like type interference drastically improved. Similarly type checker in Rust extension for IntelliJ was lacking even though Rust has superior type system.