News for hackers. Stuff that matters.
Re:Preact, a fast 3k React alternative by true_religion on Friday January 29, 2016 @02:55AM (#10994067)
There's not going to be any interesting features around the type system.

There's no change in the type system. Javascript is still a prototype based language.

There's no real value to a class system in a dynamic language, beyond synthetic sugar. Arguable prototypes are better since you don't get to question "if everything is an object, and classes are objects then what class is a class of?"

With ES7 decorators, you can put a mixin into a class... which gives you class sugar + traits, so essentially multiple inheritance without the downsides of it.

ES7 can be enabled today via Babel.

There are no comments on this comment yet.