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

Indexing containers should not include trivia #7

Closed
LeopoldArkham opened this issue Oct 19, 2017 · 0 comments
Closed

Indexing containers should not include trivia #7

LeopoldArkham opened this issue Oct 19, 2017 · 0 comments
Labels

Comments

@LeopoldArkham
Copy link
Owner

LeopoldArkham commented Oct 19, 2017

Indexing a container currently takes whitespace and comments into account. It shouldn't.

Thought: Perhaps we could have a wrapper type around usize called Exhaustive or Trivia that does include them when used as the index? People can just use nth() on the exhaustive iterator otherwise.

All the iterator code (in container.rs) may need a glance over actually; it's prototype quality and may be backwards.

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

No branches or pull requests

1 participant