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: rebol:techscribe at: 15-Oct-2003 21:50

Hi Andrew. You wrote:
>I've noticed that when I'm writing block!, paren! & > string values, I leave white space before and after > the [], () & {} characters.
After puzzling over your intro briefly, it appears to me that you see the additional space as being significant in distinguishing between your two examples: (1) With space
>>X: ["a" "b" "c"] >> >>
== ["a" "b" "c"] and (2) without space
>>X[2] >> >>
== "b" Notice, however, that the colon is also missing in example 2. I.e., even if you were not to supply the extra space in example 1, i.e.
>> X:["a" "b" "c"] ;- example 3
you would still have the significant distinction to example 2 in that in example 3 you again have the colon separating the X from the block , whereas in example (i.e. X[2]) there is no such colon. Andrew Martin wrote: