Browse thread
[Caml-list] ** and -. precedence
- Christophe TROESTLER
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Christophe TROESTLER <Christophe.Troestler@u...> |
| Subject: | [Caml-list] ** and -. precedence |
Hi all, I was wondering whether there is a reason for the relative precedence of "-." and "**". This is because with the current rules -. x**2. means (-. x)**2. instead of -.(x**2.). However, from a mathematical point of view, -x^2 means -(x^2) and never (-x)^2 ... Actually, if nobody objects, I would be in favor of permuting the precedences so -. x**2. actually means -.(x**2.) --- in accordance to the usual mathematical syntax. Cheers, ChriS ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners