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: atruter:labyrinth:au at: 16-Oct-2003 14:46

>>> X: ["a" "b" "c"] > == ["a" "b" "c"] >>> X[2] > == "b" > > In other words, by running the block "hard" against the word, it's like: > pick X 2
Why not simply use path (x/2 in the example above) notation, it saves a character at least. ;) As for finding "other" uses for "[], () & {}", if it makes sense in a certain context then great, but I suspect it could lead to subtle and hard to find errors (especially of the mismatched number of opening / closing xxx type). Regards, Ashley