gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Re: Tla spork


From: Robin Farine
Subject: Re: [Gnu-arch-users] Re: Tla spork
Date: Fri, 27 Aug 2004 17:45:28 +0200
User-agent: KMail/1.6.2

On Friday 27 August 2004 17.02, John Meinel wrote:

> (+ (+ a b) (- (c (/ (*d (* e f)) (* g (+ n 1)))
> Versus
> a + b + c - (d * e * f) / (g * (n + 1))

If we want two equivalent expressions, one written in a 
non-ambiguous prefix notation and the other written in an infix 
notation without any implicit rule of precedence, we would write 
something like:

  (+ a b (- c (/ (* d e f) (* g (+ n 1)))))

versus

  a + b + (c - ((d * e * f) / (g * (n + 1))))

I tend to prefer the first version. If now we add rules of 
precedence to the infix notation, then I definitely prefer the 
first version.

Robin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]