Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ** and -. precedence
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-27 (14:57)
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,


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.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: