How to fix the `class` keyword
Benjamin (Inglor) Gruenbaum
inglor at gmail.com
Wed Mar 4 17:28:02 UTC 2015
Not sure why this is a reply to me - but I completely agree. All `class`
does is take an extremely common idiom and makes it simpler and easier to
get right with better defaults - it _is_ the same prototypical stuff. It's
an addition based on what people do and it's still entirely possible to do
it any other ES5 way.
On Wed, Mar 4, 2015 at 6:00 PM, joe <joeedh at gmail.com> wrote:
> As someone who has fifty or sixty thousand lines of code using the new
> class syntax, I find this hard to understand. When I run into cases that
> aren't suited for the new class syntax, the solution is easy: *I don't use
> it*. If one tool isn't fit for the job, pick up another! After all, no
> one is proposing we *remove* the old prototypal stuff.
> The class syntax solves one set of problems. The more flexible prototypal
> stuff solves another, and from my own experience they work pretty well
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss