3 ms·
Adding optional type annotations to JS would be interesting. It might help with VM optimization.
by z3t4 6y ago
Adding optional type annotations to JS would be interesting. It might help with VM optimization.
- heavyset_go 6y agoPython already does type annotations, and I have no use for Mypy other than using it for type checking in my editors via LSP. I don't import it or use it as a dependency at all in projects. I feel like JavaScript adopting type annotations in a similar manner will make TypeScript look the same as Mypy in many regards: nice to have, but not necessary most of the time because the parent language ships with most of its features.