|
|
|
|
|
by metadat
756 days ago
|
|
The `maybe_expr' meta pattern matching fallback mechanic is nice, and can surely help avoid a lot of boilerplate code while simultaneously encapsulating the logic in a structure which is easy to read and reason about. It's also not a thing in any other programming language I've learned- C, Java/Scala/C#/C++, Go, Javascript, Tcl, Bash(lol), PHP, Forth, ML, and so on. I had to look up it's usage though, because I'm new to both Erlang/BEAM and Elixir. https://chiroptical.dev/posts/2024-03-04-erlang-maybe_expr.h... |
|