Is it true that in 2021 OCaml still has no agreed-upon function composition notation (e.g. Haskell's.
or the categorical \circ
)?
I understand so @Matthieu Sozeau
Ok. It seems ($) would be fine, but we don't have a standard in the codebase either, right?
fun x -> g (f x)
works
Sure it does, but I like my composition notation :)
$
for function composition sounds problematic for the Haskell crowd.
Right. But we use @@ already for Haskell's $ and we cannot use (.) apparently
^.
would work as "composition of exponentials"
Last updated: Jun 08 2023 at 04:01 UTC