3 ms·
This article makes me very happy that I'm currently learning F# instead of plain vanilla OCaml. Having said that, some of the code to me just doesn't look righ
by DanielBMarkham 17y ago
This article makes me very happy that I'm currently learning F# instead of plain vanilla OCaml.
Having said that, some of the code to me just doesn't look right. Like the file open nonsense. Why not just write a generic function and use that whenever you need it? Do you really have to repeat all that nonsense every time? Because if you're basically copying and pasting, maybe you're doing something wrong?
I don't know, since I'm a newbie and I'm on F#, not straight OCaml. I know in F# I can get an open file (with error catching) in just a line or so of code.
- pascal_cuoq 17y agoYou shouldn't believe everything you read on the internet. 1/ if you're a newbie at F#, it is not completely unlikely that all the F# you have ever written was valid OCaml. The languages are that close to each other. 2/ the author's criticism is that OCaml is not LISP, not that OCaml is not F#, so all the complaints he has against OCaml very likely apply just the same (note that I am not saying they are valid complaints) to F#.