isc30 / linq-collections

Strongly typed Linq and Collections implementation for Javascript and TypeScript (ECMAScript 5)
https://www.npmjs.com/package/linq-collections
MIT License
119 stars 12 forks source link

Symbol.Iterator and Generators support #25

Open nikolalukovic opened 6 years ago

nikolalukovic commented 6 years ago

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

isc30 commented 6 years ago

Yep, I have been thinking about this for a long time.

My conclusions were:

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 commented 6 years ago

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 commented 5 years ago

working on this (part of v2 refactor)