5 ms·
> Modern JS (ES6+) isn't worse than Java or C# in terms of expressiveness. In fact, it might even be better in some cases. ES6 isn't statically typed. It might
by aikah 11y ago
> Modern JS (ES6+) isn't worse than Java or C# in terms of expressiveness. In fact, it might even be better in some cases.
ES6 isn't statically typed. It might be better for you , it is not for me.
> You'll have to compile instead.
Yes, and without caring about Javascript. That's the point. Javascript will become irrelevant when it comes to front-end development. One language cannot possibly satisfy everybody's needs.
If that was the case we would all be using nodejs on the server and that's hardly the case.
- yareally 11y ago> ES6 isn't statically typed. It might be better for you , it is not for me. Perhaps you should just look into using TypeScript? It's basically ES6 with static typing.
- tkubacki 11y agoor even better Dartlang is't optionally typed - for both sides of the fence
- lmm 11y agoIt's a pretty weak static type system, and it retains javascript's other warts (e.g. scoping). And if I'm going to have to do a separate compilation step anyway then I might as well use a nicer language.
- jimbobimbo 11y agoTypeScript treats "let" correctly, while transpiling it down to ES3/5 that have no concept of "let".
- egeozcan 11y ago> It basically means that javascript will die in the long run > Javascript will become irrelevant when it comes to front-end development. I understand the enthusiasm but this becomes a bit of an argumentum ad populum.
- colin_jack 11y ago> Modern JS (ES6+) isn't worse than Java or C# in terms of expressiveness. > ES6 isn't statically typed. It might be better for you , it is not for me. So you are saying that because it isn't statically typed it's inherently worse in terms of expressiveness? There's a valid argument that static typing has big advantages (navigation, refactoring) but it worries me when people write off dynamic code entirely.
- seanmcdirmid 11y agoAlso performance, don't forget how effective unboxing is in many applications.
- azth 11y agoOP (aikah) didn't mention anything regarding expresiveness. The post that replied to that one brought up the expresiveness issue. That being said, yes, it has been shown that, for large projects, statically typed languages are strictly superior than dynamically typed ones.
- colin_jack 11y agoOK but he quoted the expressiveness in his reply which I thought meant that was the point he was addressing.
- bibabo 11y agoMore like the point you wanted him to address so you could add a snarky reply.
- colin_jack 11y agoUtter nonsense, he replied to a comment about expressiveness with [1], its only natural that I assumed he was saying that lack of static typing lead to lack of expressiveness. [1] ES6 isn't statically typed. It might be better for you , it is not for me.
- 11y ago