|
|
|
|
|
by iSnow
5003 days ago
|
|
Is it just me or does the proposed ES6-standard smell of heavy feature creep? - we get classes _and_ modules _and_ typed objects. Yeah, those all have their merits and are all somehow different, but having them all seems to add only slightly more value while increasing the overall difficulty of the language considerably. - same with macros and codegens. While they certainly are different animals, there seems to be overlap in the area they will be employed. To me, there seems to be feature envy on the side of the JS crowd to try and bake every nice feature into the language. I am not convinced this is the right direction. |
|
There aren't "typed objects". There is a new library for working with binary data efficiently.
Classes and modules serve different purposes. Classes provide syntactic sugar for prototypal inheritance. Modules provide a baked-in mechanism for encapsulating and sharing code.
same with macros and codegens
Neither of these are on tap for ES6. Brendan showed them as interesting experiments that may be proposed for a future release.