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

Implement Iterator for Vector<T> #8

Open
segeljakt opened this issue Jan 24, 2022 · 1 comment
Open

Implement Iterator for Vector<T> #8

segeljakt opened this issue Jan 24, 2022 · 1 comment

Comments

@segeljakt
Copy link
Contributor

This could be quite nice for ergonomics if it was possible. Maybe we could reuse the splice method, or am I wrong?

@playXE
Copy link
Contributor

playXE commented Jan 27, 2022

It is possible, but there are a few problems that appear with iterators: inerior pointers. Until we support them properly it is impossible to have "safe" iterators implementation and you're forced to iterate using index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants