News for hackers. Stuff that matters.
Re:Concatenation is composition by chriswarbo on Monday July 18, 2022 @02:00PM (#32141271)
Point-free style can be useful as an intermediate step when refactoring, since making code point-free (a) is largely mechanical (although judgement can still useful to avoid horrible results!), and (b) removes many of the abstractions and variable names in the code.

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.

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.