4 ms·
My point exactly. If people who liked type systems could stand to use the JS type system (and I only barely managed to write type system without scare quotes),
by alkonaut 9y ago
My point exactly. If people who liked type systems could stand to use the JS type system (and I only barely managed to write type system without scare quotes), we wouldn't have TypeScript. Or Cofeescript. Or Purescript. Or Elm. Or Fable. Or Flow. Or even ES6.
- spacetexas 9y agomaybe because browsers and backwards compatibility exist and we cant just change the language as we please?
- hasenj 9y agoWhat's wrong with TypeScript?
- alkonaut 9y agoI haven't used it enough to have a detailed opinion but from what I can see it looks like an excellent language.
- weberc2 9y agoI'm having a hard time discerning his point based on the languages he listed. I think his point was that the type theorists weren't fans of JS so they built languages that compiled to it, but CoffeeScript and ES6 don't have type systems either, so either he isn't very familiar with the languages he listed or he's making a different point.
- alkonaut 9y ago> CoffeeScript and ES6 don't have type systems either All languages have type systems. Including ES5, ES6 and CoffeeScript. They might be weak and dynamic but they are type systems none the less. > I think his point was that the type theorists weren't fans of JS I'm fairly sure that's the case (no data though) > or he's making a different point. My point was (a bit toungue in cheek) that seeing how many alternatives that keep popping up for avoiding JS (the language), it seems that a lot of people who like programming languages to the point where they can create one, do not like JS.
- sillysaurus3 9y agoHi. I'm interested in type theory, and I'm a big fan of JS. shrug Is it really so hard to believe? Imagine if the browser's scripting language didn't have closures or prototypical inheritance. It was possible. JS was a pretty good compromise between power and simplicity.
- alkonaut 9y ago> Hi. I'm interested in type theory, and I'm a big fan of JS. fan of JS as a whole package (Language, ecosystem, ...) or JS only as a language? The whole package is very attractive, and I can see how people accept ES5 (the language) for the opportunity to work with JS the ecosystem. JS the language I think has some cool features and with ES6 it's even an acceptable language to work with, but I just fail to come to terms with some of the smaller warts. The feeling I'm looking for in a language is "this is carefully designed to be consistent, simple and free of idiosyncraces and suprises". With equality, scoping, coercions etc in ES5 that realy is NOT the feeling. ES6 is so much better, but once you pick an ES5 alternative there are so many other choices. > JS was a pretty good compromise between power and simplicity. I really don't get why people think JS is "simple" though. It's fantastically complicated. Mostly accidentally though., because of the little warts in scoping/equality/coercion etc. Again, ES6 is a lot better - but still very very not simple compared to e.g. Java.
- 9y ago
- Cyph0n 9y agoWhy is everyone forgetting Scala.js?
- tytytytytytytyt 9y agoThey always do. I think people want to complain about things and still not actually try nicer alternatives.
- electrum 9y agoOr Kotlin: https://kotlinlang.org/docs/reference/js-overview.html https://kotlinlang.org/docs/reference/js-overview.html
- fasquoika 9y agoBecause if they listed every language that compiled to JS the actual point of their comment would get buried?
- Cyph0n 9y agoThe focus of the original comment was on compile-to-JS languages with strong(er) type systems. Scala.js should be at the top of that list. Try again.