Eric:
> Correct me if I'm wrong but I was always under the impression we 
>  evaluated the way we do because that's how *math* required them to be 
>  evaluated.

That's true.

But there may be more items in a computer language than you learned in 
school. And the order of precedence of them may not be so intuitive.

What is the "correct" order of precedence for?

 5 or 7 * 6 and 3

The C language, for example, solves this by having a dozen levels of 
precedence (In C AND is above OR. Times is above both of them. At least, I 
think 
that's right -- and that's one of the problems of having a dozen levels: you 
need a 
good memory)

REBOL solves that problem in a different way -- by just doing things left to 
right. That creates its own problems at times too -- a naturalistic line like 
this is tripped by that rule, meaning parentheses are needed:

   if length? "aa" = length? "bbb" [print 'true]


Sunanda.
-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to