|
|
|
|
|
by tomtheelder
682 days ago
|
|
Yeah you nailed the limitation. Switch type expression that returns a value is a pretty universal feature in expression based languages, often in the form of a pattern matching based expression. Check out the ‘case’ statement in elixir for an example. In languages that support it, it usually becomes an incredibly commonly used expression because it’s just so applicable and practical. |
|