Why do some people shun `if`?

Vance Shipley vances@REDACTED
Mon Aug 16 10:39:51 CEST 2021

Why I find 'if' awkward is that when I test a condition for the success
path and have a fall through clause for the fail path the semantics don't
match with 'true'.

             Foo == 42 ->
             true ->
                  {error, Foo}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210816/82c81ee9/attachment.htm>

More information about the erlang-questions mailing list