Linked by Kaj-de-Vos on Thu 20th Dec 2012 00:22 UTC
Syllable, AtheOS As the Syllable project predicted many years ago, version 3 of the REBOL programming language has finally been open sourced, under the Apache 2 licence (screenshot on Syllable Desktop). Also, the alpha version of the high-level Red programming language, supporting Syllable Desktop, has been released, by now in version 0.3.1 (screenshot, demo program, video at the Science Park in Amsterdam).
Thread beginning with comment 546053
To view parent comment, click here.
To read all comments associated with this story, please click here.
REBOL
by renox on Fri 21st Dec 2012 10:30 UTC in reply to "REBOL"
renox
Member since:
2005-07-06

So your justification that Rebol has a strange behaviour because C has also a strange (different) behaviour??

Both are wrong IMHO: the best behaviour is: associativity as in math for + - * / and for all the other operators Rebol behaviour.

Reply Parent Score: 3

REBOL
by Kaj-de-Vos on Fri 21st Dec 2012 13:41 in reply to "REBOL"
Kaj-de-Vos Member since:
2010-06-09

That's an interesting idea, which would indeed fit best with common people's experience. The nice thing about REBOL is that it's a meta language: you have control over how the language is evaluated. REBOL makes it easy to write an expression evaluator that would use the rules you stated. I would indeed implement such an evaluator if I would allow users to enter their own expressions, for example in a calculator application.

Reply Parent Score: 1

REBOL
by RobG on Fri 21st Dec 2012 14:27 in reply to "REBOL"
RobG Member since:
2012-10-17

I absolutely disagree. There are 2 choices to my mind:

1. Use standard precedences for arithmetic, comparison and logic operators as defined in common mathematical usage.

2. Have everything use standard precedences.

C's implementation is actually flawed - Ritchie himself acknowledges so (http://cm.bell-labs.com/cm/cs/who/dmr/chist.html), so blindly copying that seems the wrong approach.

Reply Parent Score: 2

REBOL
by henrikmk on Fri 21st Dec 2012 15:00 in reply to "REBOL"
henrikmk Member since:
2005-07-10

From the horses' mouth, so to speak, on math precedence in REBOL:

http://www.rebol.com/r3/docs/concepts/math-precedence.html

Reply Parent Score: 2

REBOL
by satsujinka on Fri 21st Dec 2012 20:02 in reply to "REBOL"
satsujinka Member since:
2010-03-11

Your link's dead, but you can get to it here:
http://webcache.googleusercontent.com/search?q=cache:cm.bell-labs.c...

The only issue I can find in the document is that boolean and bitwise operators have a somewhat weird relationship (boolean comes before bitwise.) The example being:
if((a&mask)==b)

the second set of parenthesis are required.

Reply Parent Score: 2