Christophe TROESTLER wrote:
> Just pretend parentheses are compulsory :). (What would happen in C
> if we left the braces out anyway! Go and change C instead, this will
> affect far more people!)
C is interesting because the braces are optional, and people get into
trouble often when they fail to use them. And many people's solution is
to treat the braces as non-optional. I don't think this is as
appropriate in ocaml because parens serve a second use: constructing
tuples. Since if/then returns a value, the difference of ; vs. ,
results in a huge difference in what's going on.
As for changing the C language, 1: it's already written in stone 2: it's
not worth saving, ocaml is.
E.