HN2new | past | comments | ask | show | jobs | submitlogin

For a good, pragmatic introduction that may clear this up for you: 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.



> Use it when it makes your code more readable, avoid it otherwise.

That's probably the most useful approach to point-free programming.


It'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: