In those other languages, if `not_found` is equal to 404 before the match block, how do you write a clause that only matches if `status` is 404?
Do you have to use the integer literal 404 instead of the named integer `not_found`?
Do you have to use the integer literal 404 instead of the named integer `not_found`?
“Use the pin operator ^ when you want to pattern match against a variable’s existing value rather than rebinding the variable.”
iex> not_found = 404
404
iex> ^not_found = 200
** (MatchError) no match of right hand side value: 200
https://elixir-lang.org/getting-started/pattern-matching.htm... match status with
| n when n = not_found -> ...