Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] order of evaluating expressions..

From: eric:ehrichweiss at: 23-Dec-2004 12:22

From the /Core documentation: The way mathematical expressions are evaluated from left to right regardless of the operator is different than many other computer languages. Many languages have rules of precedence that you must remember that determine the order of evaluation of operators. For example, a multiply is done before an add. Some languages have 10 or more such rules. **************************** 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. I mean I don't evaluate 1 + 2 * 3 as 9 but as 7 because that's how I was taught in school for math in general, not just computer languages. Now my question, does anyone find Rebol's order of evaluating to be helpful?