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

call-if-some: add Optional_thunk.call_if_some and use it #171

Merged
merged 1 commit into from
Apr 3, 2020

Conversation

seliopou
Copy link
Member

@seliopou seliopou commented Apr 3, 2020

Replace calls to to Optional_thunk.unchecked_value f () with Optional_think.call_if_some f. Sounds safer, and if the none type ever changes representation no call sites need to change.

Replace calls to to `Optional_thunk.unchecked_value f ()` with
`Optional_think.call_if_some f`. Sounds safer, and if the none type ever
changes representation no call sites need to change.
@seliopou seliopou requested a review from dpatti April 3, 2020 15:14
@seliopou seliopou merged commit 16a2486 into master Apr 3, 2020
@seliopou seliopou deleted the call-if-some branch April 4, 2020 23:58
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