maybe(t) is traditionally `Some(t) | None`, which isn't really the same as 
`nil | t`. The closest analogue would seem to me to be `{:ok, t} | :error` 
although that doesn't quite communicate the same thing.

On Tuesday, February 27, 2018 at 7:11:39 AM UTC-5, Yordis Prieto wrote:
>
> Introducing `maybe(t)` it will reduce the boilerplate code for `nil | 
> something` 
>
> It is more convenience to write it this way, at least for me.
>
> What are your thoughts about it?  
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/3b39e876-4286-4602-955a-de513d4dfc27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to