Re:A Modern JavaScript Tutorial
by z3t4 on Tuesday December 08, 2020 @04:49AM
(#25343529)
Adding optional type annotations to JS would be interesting. It might help with VM optimization.
[ Parent
| on HN ]
Re:A Modern JavaScript Tutorial
by heavyset_go on Tuesday December 08, 2020 @03:02PM
(#25350587)
Python 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.