News for hackers. Stuff that matters.
Re:Pipe Operator (|>) For JavaScript by substation13 on Friday January 20, 2023 @11:03AM (#34454943)
You do for member access, e.g.

    let firstName = 
      person
      |> fun x -> x.FirstName
      |> trim
Some languages allow:

    let firstName = 
      person
      |> .FirstName
      |> trim
But you're right, expression-orientation and currying make this much more natural.

There are no comments on this comment yet.