Live data from Hacker News

ECMAScript 2015 Approved

ecma-international.org

21–30 of 108 posts

Re: ECMAScript 2015 Approved

#21
post #19
post #16

If you've been focusing on another language for a few years, you might not recognize JavaScript anymore. It's pretty awesome now. Here's an example of what it looks like: http://pastebin.com/raw.php?i=yEB4mrty As someone who usually works with C, Scala, and Java -- I'm currently working on a small app built on ec6/7 babel, npm, jspm, system.js, aurelia, gulp, etc. It's been a great experience so far.

Is "@inject(HttpClient)" ES6 too? I don't recognize it but I haven't memorized all the new capabilities yet.

Those are decorators, a feature planned for ES7. This code sample is, uh, kinda weird.

Re: ECMAScript 2015 Approved

#22

FYI, ECMAScript 2015 is also known as ES6.

Because of their switch to use a year instead of a version number, do they plan on doing these ES enhancements more often?

Yes. Because of how rapidly Javascript is moving, they want it to be more modular in its releases instead of waiting multiple years in between.

Re: ECMAScript 2015 Approved

#23
post #13

What does it mean for a spec to be approved? Is it like a peer-review?

Yes - TC39 is responsible for updating the standard (http://www.ecma-international.org/memento/TC39.htm), meaning that they all voted to approve the current draft ES2015. You can see several years of the drafts here http://wiki.ecmascript.org/doku.php?id=harmony:specification...

Re: ECMAScript 2015 Approved

#24
post #16

If you've been focusing on another language for a few years, you might not recognize JavaScript anymore. It's pretty awesome now. Here's an example of what it looks like: http://pastebin.com/raw.php?i=yEB4mrty As someone who usually works with C, Scala, and Java -- I'm currently working on a small app built on ec6/7 babel, npm, jspm, system.js, aurelia, gulp, etc. It's been a great experience so far.

Nit: single line lambdas can be written like `a => a + 1` instead of `a => { return a + 1 }`. Cuts the amount of bracket nesting.

After working with es6 for a bit (with babel), I still think I prefer CoffeeScript mostly because it's annoying to ensure brackets/parenthesis are closed properly.

Re: ECMAScript 2015 Approved

#26
post #16

If you've been focusing on another language for a few years, you might not recognize JavaScript anymore. It's pretty awesome now. Here's an example of what it looks like: http://pastebin.com/raw.php?i=yEB4mrty As someone who usually works with C, Scala, and Java -- I'm currently working on a small app built on ec6/7 babel, npm, jspm, system.js, aurelia, gulp, etc. It's been a great experience so far.

I've been away from JS for about 10 months and... cool, but, fuck, that changed quickly. Time to get caught back up to speed. Is ES6 now actually viable, in that it's supported by most users' browsers? If not, are there popular compilers for ES5?

Re: ECMAScript 2015 Approved

#29
post #16

If you've been focusing on another language for a few years, you might not recognize JavaScript anymore. It's pretty awesome now. Here's an example of what it looks like: http://pastebin.com/raw.php?i=yEB4mrty As someone who usually works with C, Scala, and Java -- I'm currently working on a small app built on ec6/7 babel, npm, jspm, system.js, aurelia, gulp, etc. It's been a great experience so far.

> "a small app built on ec6/7 babel, npm, jspm, system.js, aurelia, gulp, etc"

Part of the problem with the Javascript ecosystem is that you have to use so many different tools/libraries to create a "simple" app.

Re: ECMAScript 2015 Approved

#30
post #15

Sorry, I accidentally downvoted you with a misclick :(

I do this rather frequently by mistake. I, like you, try to point out my error so the OP doesn't wonder why they are being downvoted.

Another problem is that I often upvote articles by scrolling on my phone. In addition to providing false signal, this has the unfortunate side effect of polluting my "saved stories".

I wish there was a mechanic to change votes after submission (even if the ability to change your vote was only momentary).

Do pg, et al. accept PRs?

Post reply on HN