I am a little confused with how your second gotcha (this losing context) is related specifically to the pointfree style. I thought this is a general issue with this and not specifically tied to pointfree. Your first example in the second gotcha also suggests that (no pointfree there). Am I missing something?
Thanks for the comment! The unary function seems neat, I will definitely give Ramda a closer look :)
As for the second gotcha it is simply to illustrate that () => foo() cannot always be replaced by foo as a more "point-free" style. I hope it is clearer now.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the article Dan!
I believe the solution to your first gotcha is "unary" (e.g. ramdajs.com/docs/#unary) - something like:
I am a little confused with how your second gotcha (
this
losing context) is related specifically to the pointfree style. I thought this is a general issue withthis
and not specifically tied to pointfree. Your first example in the second gotcha also suggests that (no pointfree there). Am I missing something?Thanks for the comment! The
unary
function seems neat, I will definitely give Ramda a closer look :)As for the second gotcha it is simply to illustrate that
() => foo()
cannot always be replaced byfoo
as a more "point-free" style. I hope it is clearer now.