Re:When Does Point-Free Notation Make Code More Readable?
by MrBuddyCasino on Friday September 29, 2017 @10:36AM
(#15365634)
I'd argue B is simpler. Why? Naming things is helpful. A function named "atLeastTwo()" is more or less self-explanatory, I don't have to look at the implementation to know what it does. In case of A, I have to look at the implementation and figure out what it does.
A is maybe more _elegant_, but IMHO it has a higher mental load.
A is maybe more _elegant_, but IMHO it has a higher mental load.