Re:Concatenation is composition
by heavenlyblue on Monday July 18, 2022 @05:29PM
(#32144076)
You can also look at the generated assembly to figure out exactly what the code does
Re:Concatenation is composition
by chriswarbo on Tuesday July 19, 2022 @05:36AM
(#32149372)
Assembly obfuscates the implementation with memory allocation, garbage collection, etc. which is often worse than even 'the wrong' (i.e. legacy) abstractions in a high level language.
The latter are often historical baggage, telling us what the code used to do, or was meant to do; whilst a point-free version shows us more directly what it actually does.
If the point-free version makes sense as-is, we can leave it; but that's rarely the case. Usually, we'll introduce a few abstractions and variables; but this time they'll be more appropriate for the current codebase.