{"action":"closed","issue":{"url":"https://api.github.com/repos/tc39/proposal-pipeline-operator/issues/50","repository_url":"https://api.github.com/repos/tc39/proposal-pipeline-operator","labels_url":"https://api.github.com/repos/tc39/proposal-pipeline-operator/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/tc39/proposal-pipeline-operator/issues/50/comments","events_url":"https://api.github.com/repos/tc39/proposal-pipeline-operator/issues/50/events","html_url":"https://github.com/tc39/proposal-pipeline-operator/issues/50","id":252752357,"number":50,"title":"The `|>` operator would be great for function composition instead. Explanation...","user":{"login":"TheNavigateur","id":387061,"avatar_url":"https://avatars0.githubusercontent.com/u/387061?v=4","gravatar_id":"","url":"https://api.github.com/users/TheNavigateur","html_url":"https://github.com/TheNavigateur","followers_url":"https://api.github.com/users/TheNavigateur/followers","following_url":"https://api.github.com/users/TheNavigateur/following{/other_user}","gists_url":"https://api.github.com/users/TheNavigateur/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNavigateur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNavigateur/subscriptions","organizations_url":"https://api.github.com/users/TheNavigateur/orgs","repos_url":"https://api.github.com/users/TheNavigateur/repos","events_url":"https://api.github.com/users/TheNavigateur/events{/privacy}","received_events_url":"https://api.github.com/users/TheNavigateur/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2017-08-24T22:46:33Z","updated_at":"2017-08-27T21:12:58Z","closed_at":"2017-08-27T21:12:58Z","body":"The existing code\r\n\r\n```javascript\r\nconst doubleThenSquare = value=>square(double(value))\r\n```\r\n\r\nwould be rewritable as:\r\n\r\n```javascript\r\nconst doubleThenSquare = double |> square\r\n```\r\n\r\nReasons to prefer this instead of `|>` being a function call operator:\r\n\r\n1. Genuinely saves code\r\n2. The tersely composed functions can be called any time and be tersely used to compose other functions\r\n3. Has logical consistency (`FunctionExpression |> FunctionExpression` instead of `InputExpression |> FunctionExpression |> FunctionExpression`)\r\n\r\nFuller explanation here:\r\n\r\nhttps://github.com/TheNavigateur/proposal-pipeline-operator-for-function-composition\r\nhttps://esdiscuss.org/topic/native-function-composition"}}
{"actor":{"display_login":"TheNavigateur"}}