Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: A JavaScript function that looks and behaves like a pipe operator. Parent comment
Sure, it is good most of the time, but operator precedence rules exist for a reason.
I don't want to read
2.chain(x => x * 2).chain(f)
f(2*x)
They can also be a distraction.
E.g. the library introduces its own promise-unwrapping semantics and more.
I don't see the use for such a generic implementation, although I applaud the effort.
There are no comments on this comment yet.
Sure, it is good most of the time, but operator precedence rules exist for a reason.
I don't want to read
instead of These patterns have their place for async programming, pure FP, streams and more.They can also be a distraction.
E.g. the library introduces its own promise-unwrapping semantics and more.
I don't see the use for such a generic implementation, although I applaud the effort.