4 ms·
we get classes _and_ modules _and_ typed objects There aren't "typed objects". There is a new library for working with binary data efficiently. Classes and mo
by wycats 14y ago
we get classes _and_ modules _and_ typed objects
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.
- BrendanEich 14y agoQuite right about macros, but codegen is happening now, all over the place.