3 ms·
> Note how OCaml is flexible about whether you write the parentheses or not, and whether you write whitespace or not. from here https://cs3110.github.io/textbo
by raverbashing 4y ago
> Note how OCaml is flexible about whether you write the parentheses or not, and whether you write whitespace or not.
from here https://cs3110.github.io/textbook/chapters/basics/toplevel.html#functions https://cs3110.github.io/textbook/chapters/basics/toplevel.h...
- toolslive 4y agoisn't that the case in most programming languages ? In essence, if you have an expression exp then (exp) is also an expression. So nothing special about OCaml in that regard. [note, just checked python, php, and js and it is the case]
- raverbashing 4y agoOk so maybe the example is confusing, because it seemed it was talking about function calls (where they are mandatory in the languages you mentioned)