You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1617 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Hello.
The ocaml reference manual contains a table of the precedence levels of
different operators http://caml.inria.fr/ocaml/htmlman/manual015.html.
In the table there is an entry "not", listed as having lower precedence
than eg. the equality operators. I guess the idea is that you could say
"not a = b" without parenthesis.
Now this seems like a horribly bad idea, since "not" is an ordinary
function identifier like any other. Thankfully, judging from ocaml's
behavior and from the sources, it seems like "not" is not given any
special treatment.
So the entry in the manual's precedence table probably ought to be
removed.
The ocaml reference manual contains a table of the precedence levels of
different operators http://caml.inria.fr/ocaml/htmlman/manual015.html.
In the table there is an entry "not", listed as having lower precedence
than eg. the equality operators.
Well spotted. I have removed it in the working version of the docs.
Original bug ID: 1617
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hello.
The ocaml reference manual contains a table of the precedence levels of
different operators http://caml.inria.fr/ocaml/htmlman/manual015.html.
In the table there is an entry "not", listed as having lower precedence
than eg. the equality operators. I guess the idea is that you could say
"not a = b" without parenthesis.
Now this seems like a horribly bad idea, since "not" is an ordinary
function identifier like any other. Thankfully, judging from ocaml's
behavior and from the sources, it seems like "not" is not given any
special treatment.
So the entry in the manual's precedence table probably ought to be
removed.
Lauri Alanko
la@iki.fi
The text was updated successfully, but these errors were encountered: