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

Improve iterator protocol #96

Open
mark-koch opened this issue Jan 12, 2024 · 0 comments
Open

Improve iterator protocol #96

mark-koch opened this issue Jan 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mark-koch
Copy link
Collaborator

It would be better to only have a single function __next__: Iter -> Sum((Elem, Iter), ()), compared to the current protocol with __hasnext__, __next__, and __iterend__.

But this requires a notion of sum types first (see #95)

@mark-koch mark-koch added the enhancement New feature or request label Jan 12, 2024
@mark-koch mark-koch self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant