Or, 

>> subtract 4 * 5 6 * 7
== -22

Russell [EMAIL PROTECTED]
----- Original Message ----- 
From: "Gabriele Santilli" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 21, 2000 4:46 AM
Subject: [REBOL] Re: Expression evaluator (an example of parsing blocks)


> Hello Rishi!
> 
> On 20-Ott-00, you wrote:
> 
>  RO> I like the fact that rebol doesn't support operator
>  RO> precedence. It is so much easier when things are being
>  RO> evaluated from left to right. No need to remember a table and
>  RO> it is easy to work with without parenthesis. just remember
>  RO> one concept...left->right
> 
> How do you write A * B - C * D in REBOL without using parens? You
> need to use parens or use the notation:
> 
>    subtract multiply a b multiply c d
> 
> which I prefer but might be less readable for people not used to
> functional languages.
> 
> Regards,
>     Gabriele.
> -- 
> Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer
> Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 
> 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to