I'm in favor of ES6 classes.
But that doesn't mean that everything that _can_ be written with classes
should. Pick the right tool for the job.
While you can achieve the same object structure by just extending the
prototype, classes have the benefit of keeping related code parts close
to each other. A class is usually defined in a single `class {}` block.
With prototype extensions that is not required and it can be a lot
harder to determine how an object is constructed.
So, as a language feature, they might not provide any benefits, but from
a code point of view, I think there are several. I'd put some of that
syntactic sugar in my tea.
On 2018-11-30 03:20, Chris Brody wrote:
I was wondering what our sentiment should be about using ES6 classes?
My own opinion in coming in a response email.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org