Comment

Comment by Arnavion

>generators, async keyword these should be prioritized not class based inheritance

Generators are indeed being prioritized over classes and inheritance; the former is starting to see support in browsers but there's no sign of the latter.

The async-await keywords are not in ES6, but they are trivial to mimic with generators and promises if you so desire.

>Even block scoping I mean maybe I'm nuts but function scoping if you take the time to understand it, it works.

Block scoping introduces no new pitfalls (unless you count learning two new keywords a pitfall). It does however eliminate two classes of bugs - redeclaring a var with the intent of shadowing the previous one but actually overwriting it, and using a var outside of a scope where it has a legal value. I'd say it's worth it.

parent Arnavion 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton