|
|
|
|
|
by Hakeashar
4452 days ago
|
|
I'd love to see some kind of typeclass support in F#... In the meantime, honest question: what are modules in OCaml? I tried to read up on it online, but my understanding of the topic is still murky. Regular modules don't really seem that interesting (they look like modules and/or types/classes in F#), parametrized modules seem to be something that is missing in F#. Second question, do you have that proof of concept code laying somewhere around? I'm just curious how it would look in F#... |
|
Here's my proof-of-concept code. I'll warn you now though -- it looks quite messy, because the goal was to show that functors could be supported on top of the existing .NET type system. If functors are ever added to the F# language, the syntax will be much, much cleaner.
https://github.com/jack-pappas/experimental-functors