3 ms·
For a good, pragmatic introduction that may clear this up for you: https://www.youtube.com/watch?v=Cy7jBYr3Zvc https://www.youtube.com/watch?v=Cy7jBYr3Zvc tldw
by agentultra 10y ago
For a good, pragmatic introduction that may clear this up for you: https://www.youtube.com/watch?v=Cy7jBYr3Zvc https://www.youtube.com/watch?v=Cy7jBYr3Zvc
tldw; point-free style can lead to readable, generic code -- but any dogmatic adherence to a particular style can have the opposite effect. Use it when it makes your code more readable, avoid it otherwise.
- davnn 10y ago> Use it when it makes your code more readable, avoid it otherwise. That's probably the most useful approach to point-free programming.
- kungtotte 10y agoIt's the most useful approach to anything when it comes to programming. Rigid adherence to rules, styles, paradigms or whatever will generally result in at least some corner cases where adherence leads to worse code.