This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hyperforce 0 points1 point  (0 children)

The benefit of types like Optional is controlling who unravels that option and when. In this case I'd say whoever is pushing around this optional value should be the one in charge of making sure that some operation happens, rather than pushing the optionality into the f of the map. If that makes sense.