Re:Guards Guards – small gotcha in Elixir guard expressions
by hauleth on Sunday July 05, 2026 @03:56AM
(#48792175)
What do you mean there? What is not short-circuited there?
[ Parent
| on HN ]
Re:Guards Guards – small gotcha in Elixir guard expressions
by turtleyacht on Sunday July 12, 2026 @07:57PM
(#48886157)
The whole thing `false or true' is sent in for evaluation, so if there is a side-effect function that returns `true', it is executed too. Because Elixir treats it as a macro and not short-circuit.