Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol.Iterator and Generators support #25

Open
nikolalukovic opened this issue Mar 2, 2018 · 3 comments
Open

Symbol.Iterator and Generators support #25

nikolalukovic opened this issue Mar 2, 2018 · 3 comments

Comments

@nikolalukovic
Copy link
Contributor

What do you think about using generator functions for lazy execution?

@isc30
Copy link
Owner

isc30 commented Mar 2, 2018

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

@nikolalukovic
Copy link
Contributor Author

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.

@isc30 isc30 changed the title Implement linq methods using generator functions? Symbol.Iterator and Generators support Mar 3, 2018
@isc30
Copy link
Owner

isc30 commented Jan 2, 2019

working on this (part of v2 refactor)

@isc30 isc30 self-assigned this Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants