Skip to content

binary-search: update to v1.3.0 - #1620

Merged
FridaTveit merged 1 commit into
exercism:masterfrom
lemoncurry:binary-search-updatetest
Dec 10, 2018
Merged

FridaTveit merged 1 commit into
exercism:masterfrom
lemoncurry:binary-search-updatetest

Conversation

@lemoncurry

Copy link
Copy Markdown
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

@FridaTveit FridaTveit left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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