Hacker Newsnew | past | comments | ask | show | jobs | submit | zitto's commentslogin

It's very exciting to see how JavaScript is evolving!


Honest question, not playing. What is exactly exciting about it? 2020 is around the corner and the language created back in 1995 is only now getting features that have been standard in many other languages, either as part of the core language or the standard library for decades.


Well, I'd think that was pretty obvious, right? It's exciting because if you spend the day writing JavaScript I don't give a hoot that another language has had that feature for decades because I don't get to use that other language.

Are you implying that no other languages ever add features that other languages have? All languages except JS are feature complete? Come on..


Well now, having an option to use other languages to script web pages, that would be exciting.


The better JS gets, the more I want to use it. JS with Promises + async/await is now one of my favorite languages.


How do you cancel promises?


You'll need to come up with a better bad-faith "ha gotcha!" than that. That's not even a feature of the promise/future construct in most languages.

But you can google around for some ideas for writing an async pipeline that you need to cancel, like taking some sort of abort/poison object that can be consumed concurrently outside of the pipeline.

For example, https://developer.mozilla.org/en-US/docs/Web/API/AbortContro...


Great response! Yeah, I remember trying to do some parallel jobs with promises some time ago and having to use Sindre's node libraries to have anything remotely useful. Node would leak tons of memory. Not a pleasant experience at all. I feel that as soon as I need to do something interesting, I hit some sort of technical limitation with node and js.


It's exciting to see the language that we use for the web gain these features (albeit late)! These changes will allow us to follow better programming practices with less overhead.


I can write things in Javascript 5x faster than I can write things in C#. I am finally convinced .NET Core is inferior to Node for that reason, unless I am writing something that needs to be super accurate/performant.

And it has brackets.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: