4 ms·
> This has never been done before. What about OCaml? I've never used it, but I was under the impression it is sort of OO combined with ISWIM FP. I've been poki
by spacemanaki 15y ago
> This has never been done before.
What about OCaml? I've never used it, but I was under the impression it is sort of OO combined with ISWIM FP. I've been poking about and reading about Standard ML and the module system seems like it supports some quite powerful OO stuff, but I also haven't really wrapped my head around it.
I'm a Lisper and I basically don't know what I'm talking about here when it comes to ML and Scala. I do find Scala interesting though.
- chc 15y agoI'm not an expert in either language, but from my expose to the two, it seems to me OCaml is much heavier on the FP than the OO. If you asked me to imagine a FP-OO hybrid language, it would be closer to Scala than OCaml. Scala is both pervasively object-oriented and pervasively functional. Scala's static type system also seems to be quite a bit more sophisticated than OCaml (though its type inference is crippled as a compromise).