News for hackers. Stuff that matters.
Re:Pipe Operator (|>) For JavaScript by delta_p_delta_x on Friday January 20, 2023 @11:24AM (#34455343)
I love the pipe operator in OCaml!

I wrote this line for a compilers class:

  let _ = apply_effects effs in ()
    in m |> fetch |> decode_execute |> memory_writeback
Actually looks like a RISC pipeline! It looks even better with code ligatures[1].

[1]: https://i.imgur.com/Qwx8CDr.png

There are no comments on this comment yet.