4 ms·
PS: there's another point being made on Reddit about cond's right-shift problem: https://www.reddit.com/r/ProgrammingLanguages/comments/1g127oy/the_ultimate_con
by lptk 2y ago
PS: there's another point being made on Reddit about cond's right-shift problem: https://www.reddit.com/r/ProgrammingLanguages/comments/1g127oy/the_ultimate_conditional_syntax/lrg36qg/ https://www.reddit.com/r/ProgrammingLanguages/comments/1g127...
- halostatue 2y agoThank you. I think that I’ll need to read this again with that particular comment in mind, because that makes sense. 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 other ways around it, but it could be fun to try to build a macro in Elixir for the UCS.