Is “Class” In ES6 The New “Bad” Part?
rajaraodv
26621

Actually you didn’t mention the strongest reason why it is a bad part!
In es6 class syntax, you must instantiate with the “new” keyword(), and that makes it impossible to later refactor to a different implementation like factory.

class a {}
a()
> Uncaught TypeError: Class constructor a cannot be invoked without ‘new’

see https://gist.github.com/ericelliott/e994ee541d0ed365f5fd

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.