Open bartve opened 8 years ago
@bartve Can I open a PR that introduces a first set of ES6 features? Would you rather prefer to agree on which features we could make use of first?
Hmm, to be honest I'd rather do it myself for the learning experience. Not much time at the moment though... For me it's low prio too as ES6 will only change some syntax, not add new features to disconnect
. I was thinking about looking into let, arrow functions and the new class syntax first and go from there.
@bartve I understand. I'd look into const, let, destructuring, spread and async/await. class also could be effortlessly introduced. Do you need any help on other aspects of the library?
Something like this https://gist.github.com/bartve/333024ae035eaf7b3d9a8478e2e10f23 is as far as I'd like to go. Some subtle scoping changes and greatly improved readability.
Anyway, there's now a new es6 branch with some big re-writes here and there. Still need to test it properly before merging it with master and release it.
Sweet @bartve, I will use it for https://github.com/LostCrew/rym2discogs, thanks!
Research + start implementation of the most widely supported new ECMAScript 6 elements and syntax.