You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep, I have been thinking about this for a long time.
My conclusions were:
I would like to use [Symbol.Iterator] and generator functions in the library
Those are part of ES6, but this library is targetting ES5
I don't know if there is any way to disable some parts of the code depending on the target (maybe with gulp?). It would be very nice to achieve this, but I have no idea how. Any ideas?
The best idea I have is to create a fork of this repo (and new package) targetting ES6
Maybe the best idea would be to release the ES5 version first with all the methods and features you want implemented. This could be, lets say 1.0.0 version. The 2.0.0 version would target ES6 and use generator functions. It would allow users to choose what to use without splitting the project and the user-base unnecessarily.
What do you think about using generator functions for lazy execution?
The text was updated successfully, but these errors were encountered: