Personally, I am extremely pleased with these alterations to path forms.
(FYI, it's actually http://www.rebol.net/blog/carl.html#section-6 ).
   On the point of:
 data/:n: 150

   It would appear to me that the way this works would be more like:
n: 4
poke data n 150

   As for the statement:
>> Couldn't it just as well mean:
>> n: 150
>> pick data n

   I don't see that being the case.  To me, it wouldn't make sense to 
operate that way, even.  Just as
data/:n
   returns the value of 'data at 'n, this new format is assigning the value 
to 'n in 'data.  I mean, I see the way you're talking, but combining symbols 
like paths and colons in REBOL has always been handled completely 
differently; data/:n: 150 means poke data n 150, because they didn't want it 
to mean pick data (n: 150).  *shrugs*

   And oh, it shouldn't work yet.  It's coming in version 2.5.55.  Current 
version for download is 2.5.6 according to the site.  Patience. :)

> OMG whoops sorry about that I had meant to
> respond then accidentally tried to click "Reply" twice...
>
> It looks to me like -
>
> data: [10 20 30]
> n: 3
>
> "data/:n"  does the exact same thing as "pick data n",
> but with less typing, and that "data/2: n" is the same as
> "poke data 2 n" with less typing..
>
> I wouldn't think these are the only differences though,
> and note that the example with 'poke you can use a
> variable for the index, but there seems like maybe one
> way works faster than another..
>
> Oh and I got an error when I tried "data/:n: 150"
>
>>
>> Hi, list,
>>
>> About http://www.rebol.net/blog/carl.html#section-5
>>
>> Here's Carl's exemple:
>> data: [10 20 30]
>> n: 3
>>
>> This shorthand for accessing elements in blocks is added to rebol 
>> version=
>> 2.5.55:
>> data/:n: 150
>>
>> But then: is it absolutely clear that this should mean
>> poke data n 150
>>
>> Couldn't it just as well mean:
>> n: 150
>> pick data n
>>
>> i.e. with the form=20
>> :n:
>> which should be evaluated first, :n or n: ?
>>
>> This might be a dumb question, but I don't see that this is all that
>> clear.=
>> Elucidate me!
>>
>> A copy of this email is sent via http://www.rebol.com/contacts.html.
>>
>> HY
>>
>> Pr=E6tera censeo Carthaginem esse delendam
>>
>> -- 
>> To unsubscribe from the list, just send an email to rebol-request
>> at rebol.com with unsubscribe as the subject.
>>
>>
>
>
> -- 
> To unsubscribe from the list, just send an email to rebol-request
> at rebol.com with unsubscribe as the subject.
> 

-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to