Skip to content

binary-search: update to v1.3.0 #1620

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

Merged
merged 1 commit into from
Dec 10, 2018

Conversation

lemoncurry
Copy link
Contributor

v1.2.0 -> v.1.3.0:

See discussion in problem-specifications: binary-search: Use error object instead of sentinel -1 #1338

For now I kept the sentinel -1.
Would you prefer to change from the sentinel -1 to an error object?


Reviewer Resources:

Track Policies

Copy link
Contributor

@FridaTveit FridaTveit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @lemoncurry! 🙂 In this case I'm happy with keeping -1 as the return value if the desired value isn't found. I think that's quite common behaviour. I wouldn't expect it to throw an exception as it's not really an error case and I find optionals a bit messy in Java. So I'm happy to keep it like this 🙂

@FridaTveit FridaTveit merged commit dd327fc into exercism:master Dec 10, 2018
@lemoncurry
Copy link
Contributor Author

Great points, thank you @FridaTveit !

@lemoncurry lemoncurry deleted the binary-search-updatetest branch February 14, 2019 09:44
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.

2 participants