3 ms·
Since TS is superset of JS it has all it's flaws - we need different lang compiled to JS (like Dart) not a mockup.
by tkubacki 10y ago
Since TS is superset of JS it has all it's flaws - we need different lang compiled to JS (like Dart) not a mockup.
- Klathmon 10y agoJust because a language has a feature does not mean you need to use it. We use JavaScript, but in 90%+ of our codebase we use it without 'this', without prototypes, without classes, and without other ugly parts.
- aljones 10y agoYou also don't use integers!
- talmand 10y ago?
- omni 10y agoJavaScript does not have an Integer primitive, it only has Number which is floating point. http://www.w3schools.com/js/js_numbers.asp http://www.w3schools.com/js/js_numbers.asp
- talmand 10y agoWhy the downvotes? It answer the question. As I'm not a deep coder, what are the advantages of having an integer type versus a float type in the case of Javascript? Memory? Not having to use Math.floor, Math.ceil, or Math.round in case of funky divisions? I've used Javascript for years now without worrying over that particular detail.
- cies 10y agoSee PureScript and Elm. Dart is surely more concise, but not very innovative.
- gjolund 10y agoElm is extremely exciting. Whenever I get frustrated with js I fire up an elm app I have been working on just to see those beautiful compiler errors. Seriously though, Elm's error reporting is best in class.
- danneu 10y agoIt's nice to fire up an old Elm app and be able to make changes immediately. Not just because of the compiler errors, but also because of its other limitations, like having your effects isolated via `Cmd`s and ports.
- gjolund 10y agoCommands and ports are something I have carried over to typescript and it has been really beneficial. I really like the idea of treating the interface with javascript as just another service.