Skip to content

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

Merged
seliopou merged 1 commit into
masterfrom
call-if-some
Apr 3, 2020
Merged

call-if-some: add Optional_thunk.call_if_some and use it#171
seliopou merged 1 commit into
masterfrom
call-if-some

Conversation

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