I found the eta-reduction to be too aggressive for all cases, reducing code readability in complex lambda expressions. When there are more arguments to the call in the lambda body, explicit arguments indicate more useful information to the reader. My idea is to add a restriction that makes it only run for the most primitive expressions. Is that an idea worth pursuing?
The test fixture is a bit contrived. Real-world code can be more complex.
Hi! Thank you for this very useful tool.
I found the eta-reduction to be too aggressive for all cases, reducing code readability in complex lambda expressions. When there are more arguments to the call in the lambda body, explicit arguments indicate more useful information to the reader. My idea is to add a restriction that makes it only run for the most primitive expressions. Is that an idea worth pursuing?
The test fixture is a bit contrived. Real-world code can be more complex.