A Crash Course on ML Modules

4 comments · 92% upvoted · source · other discussions

comments

[deleted]

article says

generative functors (ala SML) are good for impure code, but applicative functors (ala OCaml and BackPack) really shine with pure code.

but

For you SML fans, OCaml now has generative in addition to applicative functors.

as https://blogs.janestreet.com/ocaml-4-02-everything-else/ explains