3 ms·
Here is another one: http://www.brool.com/index.php/the-genius-of-python-the-agony-of-ocaml http://www.brool.com/index.php/the-genius-of-python-the-agon...
by sanxiyn 16y ago
Here is another one: http://www.brool.com/index.php/the-genius-of-python-the-agony-of-ocaml http://www.brool.com/index.php/the-genius-of-python-the-agon...
- rwmj 16y agoYawn ... The syntax of OCaml is tremendously regular once you understand it (and the examples he gives there are using the toplevel which indicates he's not used it very much). Compare the syntax of OCaml (and ML in general) for: (1) defining functions (2) defining ordinary variables (3) static variables (4) variables scoped to two functions with the same for your favourite imperative/OO language. Here's the OCaml syntax: (1) let f x = ... (2) let v = ... (3) let f = let v = ... in let f () = ... in f (4) let f, g = let v = ... in let f () = ... in let g () = ... in f, g
- awarzzkktsyfj 16y ago... from 2006