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

move_higher/move_lower vs move_to_top/move_to_bottom act differently when item is already at top or bottom #77

Closed
dellch opened this issue Mar 18, 2013 · 2 comments

Comments

@dellch
Copy link

dellch commented Mar 18, 2013

If trying to move an item higher when it is already at the top of list (via move_higher), the return is nil (because it checks for higher_item). But a move_to_top method only checks if the item is in_list?.

(move_lower and move_to_bottom act the same way)

Shouldn't these two groups of methods either both return nil or both be successful? Either would make sense, but the inconsistency doesn't make sense to me.

@brendon
Copy link
Owner

brendon commented Apr 17, 2016

Hi @dellch, sorry for the very delayed response. Can you explain why this inconsistency is causing a problem? Is it because there is a bug in the outcome, or you'd just prefer a certain value returned?

@brendon
Copy link
Owner

brendon commented Jun 2, 2016

@dellch, I'm closing this for now due to inactivity. Feel free to comment further if it's still a problem for you.

@brendon brendon closed this as completed Jun 2, 2016
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

2 participants