2 ms·
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.
by cbhl 10y ago
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.
- viebel 10y agoIndeed. 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!