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

Deprecate History#iterator() and History#reverseIterator(). #263

Conversation

zach-klippenstein
Copy link
Collaborator

The raw iterator methods on History do not make it clear you're iterating from the top or bottom of the stack. Introduced new methods framesFromTop and framesFromBottom to make it very clear. This also lets you use for each loops for both forward and backward iteration.

Fix for issue #261.

…explicit methods returning Iterables instead.

The raw `iterator` methods on `History` do not make it clear you're iterating from the top or bottom of the
stack. Introduced new methods `framesFromTop` and `framesFromBottom` to make it very clear. This also lets
you use `for each` loops for both forward and backward iteration.

Fix for issue square#261.
@loganj loganj merged commit 444a787 into square:master Jun 8, 2017
@zach-klippenstein zach-klippenstein deleted the zachklipp/make-iteration-more-expressive branch June 8, 2017 18:10
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

Successfully merging this pull request may close these issues.

None yet

2 participants