On Fri, Nov 25, 2016 at 3:49 PM, Joey Eremondi <joey.eremo...@gmail.com>
wrote:

> To me this makes no sense. Maybe implies uncertainty: it's either there or
> it's not.


I think the beauty Witold was pointing to is in the way the `case`
statement reads, not the way the type reads on its own. Reading "case of
maybe this, or maybe that" made the suggestion make sense to me.

That said, how about "Is"?

type Maybe a = Is a | Nothing

case msg of
    Is This -> ...
    Is That -> ...
    Nothing -> ...


To be or not to be... that is the question :)

Duane

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to