News for hackers. Stuff that matters.
Re:Ask HN: What programming language should I learn next? by erk__ on Wednesday March 27, 2019 @03:55PM (#19505287)
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.
Re:Ask HN: What programming language should I learn next? by laurentl on Wednesday March 27, 2019 @06:09PM (#19506655)
I’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)
Re:Ask HN: What programming language should I learn next? by erk__ on Wednesday March 27, 2019 @06:52PM (#19507035)
F# 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.
Re:Ask HN: What programming language should I learn next? by philonoist on Friday March 29, 2019 @01:31AM (#19519394)
Considering 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?

Re:Ask HN: What programming language should I learn next? by erk__ on Friday March 29, 2019 @05:11PM (#19525716)
It 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.
Re:Ask HN: What programming language should I learn next? by philonoist on Saturday March 30, 2019 @03:55AM (#19528373)
Considering 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?
Re:Ask HN: What programming language should I learn next? by erk__ on Sunday March 31, 2019 @04:06PM (#19538020)
If 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.