3 ms·
I'm not sure I prefer 'in' over semicolon in declarations. I mean: let x = ref 0 in (* something *) in Ocaml is not much worse/better than let mu
by klibertp 14y ago
I'm not sure I prefer 'in' over semicolon in declarations. I mean:
let x = ref 0 in
(* something *)
in Ocaml is not much worse/better than
let mut x = 0;
// something
in Rust. As I said above, that's really a minor, stylistic issue, one probably would write "let x = mut 0 in" for a week or so (coming from OCaml) and that's it, after a week it becomes as natural to write semicolon as it is to write 'in'.
- lobster_johnson 14y agoI agree, I didn't really put OCaml forward as the ideal solution. Ruby and Go solve the semicolon problem in much better ways, in my opinion.