3 ms·
>If `Maybe` is an output then existing callers SHOULD be broken, because they must now handle a new possibility of failure they didn't before. Look at the exam
by JBiserkov 8y ago
>If `Maybe` is an output then existing callers SHOULD be broken, because they must now handle a new possibility of failure they didn't before.
Look at the example again. The output was Maybe y "yesterday", "today" the output is y. Existing callers shouldn't have to change - there is no new possibility they need to handle - they no longer need to deal with the possibility of Nothing.
- kybernetikos 8y agoIt's an interesting one - they shouldn't be broken, but they should update their code when they can since they have a bunch of code to deal with a case that can't happen any more.