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:
>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"
>
>In other words, by running the block "hard" against the word, it's like:
> pick X 2
>
>I don't know what use () and {} could have, though. What's your
>thoughts?
>
>Andrew J Martin
>Attendance Officer
>& Grail Jedi who is tapping on the dungeon wall with Rebol...
>Colenso High School
>Arnold Street, Napier.
>Tel: 64-6-8310180 ext 826
>Fax: 64-6-8336759
>http://colenso.net/scripts/Wiki.r?AJM
>http://www.colenso.school.nz/
>
>DISCLAIMER: Colenso High School and its Board of Trustees is not responsible (or
>legally
>liable) for materials distributed to or acquired from user e-mail accounts. You can
>report any
>misuse of an e-mail account to our ICT Manager and the complaint will be
>investigated.
>(Misuse can come in many forms, but can be viewed as any material sent/received that
>indicate or suggest pornography, unethical or illegal solicitation, racism, sexism,
>inappropriate
>language and/or other issues described in our Acceptable Use Policy.)
>
>All outgoing messages are certified virus-free by McAfee GroupShield Exchange
>5.10.285.0
>Phone: +64 6 843 5095 or Fax: +64 6 833 6759 or E-mail: [EMAIL PROTECTED]
>
>
>
>
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.