Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Ultimate Conditional Syntax. Parent comment
The limitations of Elixir syntax means it would need to be something more like:
ucs do expensive() => and cheap1() -> "branch 1", and cheap2() -> "branch 2", cheap3() -> "branch 3" end
There are no comments on this comment yet.
The limitations of Elixir syntax means it would need to be something more like:
There are other ways around it, but it could be fun to try to build a macro in Elixir for the UCS.