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

introduce iterable[T] type for procs like toSeq #322

Open
timotheecour opened this issue Jun 23, 2020 · 0 comments
Open

introduce iterable[T] type for procs like toSeq #322

timotheecour opened this issue Jun 23, 2020 · 0 comments

Comments

@timotheecour
Copy link
Owner

timotheecour commented Jun 23, 2020

goal: introduce a type for called iterators instead of being treated as untyped (which will make elementType and toSeq well typed), which would resolve some other issues:
nim-lang/RFCs#512
nim-lang#9219
nim-lang#13595
nim-lang#14148
nim-lang#16545
and sidestep nim-lang#14778
and reduce cases where we hit nim-lang#14827

Note: concepts aren't powerful enough to express that, so type Iterable[T] = concept can't work

links

related

implementation

=> PR nim-lang#17196

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

1 participant