Is it true that in 2021 OCaml still has no agreed-upon function composition notation (e.g. Haskell's
. or the categorical
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: Dec 07 2023 at 08:01 UTC