-
Notifications
You must be signed in to change notification settings - Fork 13
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
Rename to Iterator.ofNumbers? #58
Comments
What current problem would that solve? |
The name does not hint it is an iterator that can only be used once? |
"it's an iterator" and "generators" should already hint that. Is that the primary source of objection from those who want something reusable, the name? I was under the impression that they wanted reusability, not that there was naming confusion. |
I support renaming, but I also suggest we could consider only support integers, so the name will be
Even if we still want to support floating points, |
The spec avoids accumulated floating-point error by using the following
where
I suggest any additional slight complexity is worthwhile as there are use cases (e.g., plotting charts & graphs, examining mathematical functions, producing test data) where it might be expected that a floating-point
Agreed. |
It's logical to have iteration methods on iterated types, otherwise, we will have |
Iterator helpers try to advance to stage 3 next meeting. If we rename this proposal to
Iterator.ofNumbers
, we can solve our current problem.Not
Iterator.range
because I think there might be something likeIterator.ofChars
in the future.If we can rename it to Iterator.ofNumbers, I'll try to move this proposal forward with the current semantics (maybe with some simplification).
The text was updated successfully, but these errors were encountered: