Dyalizer error on MapSet

Truth be told neither of the style guides have an opinion about it. It’s just something that because of my exposure to Haskell that dawned on me. And as such not even the Erlang libraries are consistent about it.

value | null
value | :error
value | {:error, reason}

all have the same problem. A bare value has no constant reminder that failure is a possibility in the way the {:ok, value} does.

2 Likes