What are the differences between syntaxes of CameLIGO and OCaml ?
Most of the CameLIGO syntax follows the OCaml syntax, however, there are a few syntactic shortcuts available in one but not the other.
Consecutive '-' operators
In OCaml, you can do :
let y = - -1 (* In OCaml *)
But this has been forbidden in CameLIGO, you have to add parentheses instead:
let y = -(-1) (* In CameLIGO *)
Unary '+' operator
This is possible in OCaml but not CameLIGO :
let x = +1 (* In OCaml *)