Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JavaScript has multiple ways to blueprint objects, yes, but that isn't really what GP stated. I consider the class keyword as way more beneficial than just being for "trendchasers and worshippers".

The only pitfall with async/await is all the existing I/O-intensive code where blocking your runtime wasn't seen as a problem that waisted unnecessary resources (yet). Must be This Tall to Write Multi-Threaded Code[0] comes to mind.

[0]: https://bholley.net/blog/2015/must-be-this-tall-to-write-mul...



I agree, class syntax is better. If javascript had been designed today, I imagine that would be the _only_ way to blueprint objects.




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

Search: