News for hackers. Stuff that matters.
Re:`no-pipe` ESLint rule by mdmglr on Tuesday September 20, 2022 @03:38PM (#32916736)
Can you give me the gist of why it would be considered harmful?
Re:`no-pipe` ESLint rule by arendjr on Tuesday September 20, 2022 @03:46PM (#32916836)
Unlike pipe operators in functional languages, the Hack proposal is aimed at composition of expressions instead of functions. This makes the proposal extremely pervasive and unfocused, enabling people to write `a |> %[0]` instead of `a[0]`, for instance.

Proponents argue it’s great because you can pipe arbitrary expressions without nesting or needing temporary variables, but opponents argue it harms readability and will result in needless style arguments.

Re:`no-pipe` ESLint rule by mdmglr on Thursday September 22, 2022 @02:41PM (#32942926)
Makes sense. Could linters solve this issue?