6 ms·
I don't get the issue with ;; in ocaml, literally all it does is force evaluation in the repl. You will never write it in code.
by andrepd 7y ago
I don't get the issue with ;; in ocaml, literally all it does is force evaluation in the repl. You will never write it in code.
- int_19h 7y agoDon't you also need it for top-level declarations in a file?
- wk_end 7y agoThey can (almost?) always just be inferred, I think (it's been a couple of years since I programmed in ocaml daily). I personally like using them anyway. If you've done something wrong I recall the parser can sometimes give better error messages if it has them around to orient itself. And for all the complaints people seem to have you really can grow to like them aesthetically - there's something pleasantly blocky and definitive about them I find, like the satisfying thock of a good keyboard.
- tom_mellior 7y agoNo.