4 ms·
The way elixir conventionally uses tuples and pattern matching is really good.
by te_chris 1y ago
The way elixir conventionally uses tuples and pattern matching is really good.
- mtndew4brkfst 1y agoIt's a pale shadow of an actual Option/Result type, though, and the way most community and professional Elixir code uses ok-tuples is hardly what I would call rigorous. The with special form leads to sloppy pass-the-buck design IME, and nothing in the language design or Credo ruleset is likely to steer anyone to do better.