5 ms·
It's funny you say that, because as someone more experienced in JS, I found myself saying "oh look, C# is coming up to par with ES6!" e.g. Tuple types and destr
by johnfn 10y ago
It's funny you say that, because as someone more experienced in JS, I found myself saying "oh look, C# is coming up to par with ES6!" e.g. Tuple types and destructuring, which are a part of ES6.
- nulagrithom 10y agoI thought the reverse with ES6. :) "Oh look, arrow functions! Finally!" It's fun to see how languages influence each other.
- johnfn 10y agoHah, that was actually ES5 ;-) but I assure you the entire JS community was celebrating. :) I actually think C# is a better language than JS, but it's nice to see how they get the best features from each other.
- nulagrithom 10y agoES6 actually! Pretty recent: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#Specifications https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- johnfn 10y agoWeird, it feels like they've been around longer... too many transpilers.
- louthy 10y ago> Tuple types and destructuring, which are a part of ES6. And part of many, many languages prior to ES6.
- johnfn 10y agoI don't see how bringing this up is necessary or relevant. These types of comments seemed to me to be nothing more than a snarky aside. "You're happy about X feature? Well it already existed in Y language."
- louthy 10y agoI brought it up, because the the original post seems to be implying that C# is just copying ES6, and only now "coming up to par". Whereas I think anyone who's not caught in the JS bubble will realise it's very unlikely to be true. There are other .NET languages that have tuples and destructuring, never mind the myraid other languages that have had those features for decades; and ES6 is hardly a panacea when it comes to languages. It's certainly not something that a language designer would be trying to 'come up to'. Apologies if you thought my comment was snarky, it wasn't my intention.
- johnfn 10y agoI don't see why everyone is so defensive about languages, though. C# can achieve parity with ES6 in some ways, and ES6 can achieve parity with C# in others. It doesn't necessarily imply that the developers of one language were cribbing notes from another. It's just a happy thing that some of my favorite features are seeing more widespread adoption between languages. With my original comment, I was trying to imply that the context in which you read about languages (e.g. which languages you are the most familiar with) can color how you perceive the news. Sadly I feel like everyone read it as an indictment against C# or something. Anyway, my bad for mistakenly calling you out. It's a bit of a reflex after seeing so many people try to claim that their language is superior.