4 ms·
From my reading today it seems REBOL 3 and Red have semi-merged [1]. REBOL 3 extensions can be written in Red, and the communities seem to share the same onlin
by doublerebel 12y ago
From my reading today it seems REBOL 3 and Red have semi-merged [1]. REBOL 3 extensions can be written in Red, and the communities seem to share the same online spaces and goals.
Red looks awesome in the long run, the main weirdness being its refusal to follow standard math operator precedence [2].
Although Red's macro/DSL buildup skips a ton of intermediate bloat, someone needs to write a normal server framework to interact with standard industry data sources. When it becomes easy to add a Red microservice to an architecture, Red can enjoy an explosion of adoption as Go has.
[1] http://rebolforum.com/index.cgi?f=printtopic&topicnumber=27&archiveflag=new http://rebolforum.com/index.cgi?f=printtopic&topicnumber=27&...
[2] http://stackoverflow.com/questions/26514041/fixing-the-rebol3-example-calculator-to-use-normal-math-operator-precedence http://stackoverflow.com/questions/26514041/fixing-the-rebol...
- soapdog 12y agoThanks a lot for the links and reply :)
- akavel 12y agoUm, the first link seems to me to only suggest unification of REBOL 3 and Red tests, not languages themselves; or do I miss something? Also, it seems to only suggest that, not claim it done yet?
- iArnold 12y agoAs the person that replied to your second point on the SO question there, I have to add something here. There are other calculators made in Rebol. (Search rebol.org site scripts for those). Having this calculator adapted for the math operator precedence would be too farfetched, for the example merely shows how much can be done with so little code. The other is that I do not have the ultimate say in what Rebol and or Red should do with math operator precedence, I have nothing to say about that to be exact ;-) (I am free to express my opinion on the subject). What I state there still holds for me, the operator precendence is imho arbitrary, and not necessary at all, counterintuitive for kids, and (I am a mathematician) the world can do without these rules. With operator precendence I have no other choice then to use ellipses when I have 3 * 4 + 1 and I meant I wanted to add 1 to 4 before multiplying by 3: 3 * (4 + 1) in Rebol I can write 1 + 4 * 3 and I do NOT have to use "(" and ")" to achieve what I intended saving me four keystrokes. Regards, Arnold
- justin66 12y agoDoes 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.
- dockimbel 12y agoBoth 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
- doublerebel 12y agoJust saw this. That is not my SO question -- I'm just a lifetime programmer who has never seen rewriting of operator precedence in the tens of languages I've used.