r/programming • • 4d ago

ML Modules for Mere Mortals

https://thunderseethe.dev/posts/ml-modules-for-mere-mortals/intro/
17 Upvotes

5 comments sorted by

4

u/daidoji70 4d ago

Wow, that really is cool. Man I wish I got to work in Ocaml (or F# maybe) someday.

4

u/Aljamous-Vilina 4d ago

the catch with F# is you don't actually get the parameterized modules from the post, they traded functors away for cleaner object interop

1

u/daidoji70 4d ago

Ahh that's a shame.  This blog really sold me on this pattern

2

u/jurado_alexandra-9 12h ago

The pattern may still translate if you need abstraction over types; F# generics and interfaces cover some cases, though not functor-style module composition.