Re:Clean Code vs. A Philosophy Of Software Design
by TeMPOraL on Tuesday February 25, 2025 @06:17PM
(#43178784)
Well, the most interesting thing about purely functional composition would be the ability to un(de)compose them, inlining the bodies until the resulting function is large enough to be worth the effort of reading it.
Re:Clean Code vs. A Philosophy Of Software Design
by ninetyninenine on Tuesday February 25, 2025 @10:06PM
(#43180161)
Exactly you have the lowest level primitives. You can arbitrarily compose them however you want forming arbitrary layers of abstraction from a tree of compositions.
In the first example there is one layer. In the second there is 2 layers of abstraction formed by composing the primitives into a tree.
Lines doesn't makes sense for pure non imperative functions. Lines ONLY make sense for imperative functions because each line represents an instruction.