News for hackers. Stuff that matters.
Re:A Week with Elixir by kvb on Friday May 31, 2013 @10:48AM (#5798916)
The word "operator" need not imply "a built-in construct"; instead it's often used to describe a name made up of symbols, which is how it appears to be used here. In F#, for instance, where |> is used frequently because it improves type inference, it is defined in the standard library as `let (|>) x f = f x` (note that the definition you give is actually for the related (>>) operator). Would you claim that someone is "doing it wrong" because they call (+) the "addition operator"?
Re:A Week with Elixir by arianvanp on Friday May 31, 2013 @11:12AM (#5799059)
ye you're right. (|>) = flip ($) now I come to think of it.