Re:The most elegant implementation of FizzBuzz
by cbhl on Wednesday October 26, 2016 @12:34PM
(#12797919)
If you looked at the assembly code, though, there still is a branch (aka an if statement) -- it's just hidden inside the "choice" function.
[ Parent
| on HN ]
Re:The most elegant implementation of FizzBuzz
by viebel on Wednesday October 26, 2016 @12:50PM
(#12798124)
Indeed.
But I think that the point of functional programming is to provide a layer of programming that exposes a clean API. You know: now side effects, no global variables etc..
And maybe: no if!