3 ms·
Agreed. ES6 class syntax is superior to constructor functions and prototype mutation, because it's declarative and statically analysable. I think the only legi
by robpalmer 9y ago
Agreed. ES6 class syntax is superior to constructor functions and prototype mutation, because it's declarative and statically analysable.
I think the only legitimate reason left not to use ES6 class syntax is (for perf sensitive code) performance, but that's a negligible and temporary problem as the JS engines will fix that over the next 6 months.