Re:Red Programming Language
by justin66 on Sunday November 16, 2014 @08:28PM
(#8616362)
Does the operator precedence convention of treating addition and multiplication equally apply to all of Red? All of REBOL? Or is it just that program? Thanks.
[ Parent
| on HN ]
Both Rebol and Red use that convention. It sounds weird at first look, but proved to be a relief in practice (no need to remember any specific precedence rule). Though, we plan to provide a small math-oriented DSL for writing expressions using standard math conventions. It would look like this:
>> print 1 + 2 * 3
== 9
>> print math [1 + 2 * 3]
== 7