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

[REBOL] Re: Cunning use of [], () & {} in R# and in future? Rebol versions?

From: maximo:meteorstudios at: 16-Oct-2003 9:06

> Andrew Martin wrote: > > >It occurred to me as I was writing Rebol code, that it's possible to > >re-use these characters [], () & {}, in useful ways. I've > noticed that > >when I'm writing block!, paren! & string values, I leave white space > >before and after the [], () & {} characters. It would be > nice to have: > > > > > > > >>>X: ["a" "b" "c"] > >>> > >>> > >== ["a" "b" "c"] > > > > > >>>X[2] > >>> > >>> > >== "b"
more liquely [X--2], X#2, X>2, X\2, X.2, X|2, X,2 one would equate to
>> at X 2
["b" "c"] another to
>> at head X 2
this breaks no current rules (it might collide with mail datatype though?) and is a logical complement for the X/2 which we all use. If a specific datatype does not usually return a block (like a tuple), then it would have to do so. print ["my 0.02" (locale/currency)] -MAx