4 ms·
I would reccomend trying a ML language like SML, OCaml or F#, I have recently written some f# again after break and it is nice to come back to a simple language
by erk__ 8y ago
I would reccomend trying a ML language like SML, OCaml or F#, I have recently written some f# again after break and it is nice to come back to a simple language that is fun to write in.
- laurentl 8y agoI’m somewhat in the same position as OP, except that I know I want to explore FP. I’ve more or less settled on Ocaml, although I might be sqwyed by F#’s integration with the .net ecosystem (will have to look at some F# code to see if it makes me want to dive in as much as Ocaml)
- erk__ 8y agoF# and ocaml are very similar, adn if you learn one of them you pretty much learn both, there are some problems with ocaml, for example it has two std libararies, the normal one and core by Jane Streeet. It also has to competing async libraraies. But the main code is pretty similar there are of course some things that are in ocaml that is not in F# (for example functors) but there are also things the other way.
- philonoist 8y agoConsidering that my main aim is to learn as many functional concepts as possible and must settle among these three languages, which language should I choose? Some say choose OCaml over F# because of functors. Some say choose F# over OCaml for those unique features in F# that OCaml doesn't have. If there is an optimized trade off for choosing a language, what would you recommend me to settle for?
- erk__ 8y agoIt depends, if you want to have a language that is used and supported a lot you should chose OCaml or F#. SML is not used a lot anymore but there are still a few places using it. I personally think that F# feel more modern to write for example ocaml have differnt operators for integers compared to floats. But it is mostly an opinion. As I said there is not a big difference between the two languages. So you would with a very short notice be able to move from one language to another.
- philonoist 8y agoConsidering my sole criteria to be learning functional paradigm as deeply as possible, as propounded earlier, which among F# and OCaml takes me to that extra mile in teaching Functional concepts?
- erk__ 8y agoIf you only want to look at functional a more pure functional language like haskell may fit yyou better both ocaml and F# allows to do functions which are not truly pure it even have mutable variables which are not normally a thing. So if it to learn purely functional haskell or SML may be better.