I think your specific question can be answered by this video. It explains how all branching was removed by refactoring an imperative-style function into functional-style. The original code is on the top, the refactored code is on the bottom: https://youtu.be/GyYME8btMHE?t=1473 Besides being shorter and easier to reason about, functional-style can be easier to test because there are fewer logical paths to test (statem…
Re: Ask HN: Explain to me why functional programming is better like I'm stupid
#11Thanks for all the sources. It will take me awhile to digest them all.