tc39 / proposal-iterator.range

A proposal for ECMAScript to add a built-in Iterator.range()
https://tc39.es/proposal-iterator.range/
MIT License
487 stars 13 forks source link

Comparison of Range in slice notation proposal #13

Closed hax closed 1 year ago

hax commented 4 years ago

There are some discussion in slice notation proposal which also suggest Range, copy from C# index and range.

Basically, Range in that proposal is a little bit like SafeIntegerRange, and optimized for array index use case.

Jack-Works commented 4 years ago

If there is Symbol.slice, I'd like to add it to the return value of range (#12 )

Jack-Works commented 1 year ago

Looks like the slice notation proposal isn't active for these years, I'll close this for now.