5 ms·
As someone who moves between languages, I wish typescript’s type system would have a chat with python’s cause Python has made some weird choices and created a l
by kkirsche 5y ago
As someone who moves between languages, I wish typescript’s type system would have a chat with python’s cause Python has made some weird choices and created a lot of unnecessary arguments about the purpose of typing
- amitport 5y agoAgree, but I want to add that in the other direction I wish JS took some hints from Python: Mainly: (1) Richer standard api (there isn't even built-in 'range' in JS); (2) flexible indexing (negative indexes, tuple indexes, JS does not even have to go all numpy). Fix these 2 points and JS+TS is a clear winner over Python as a programming language (not ecosystem... There are still way better libraries and integrations Python) (Oh and also fixing JS 'with' would be nice)