[squeak-dev] [Question] nil, true, false in array literals

Vassili Bykov smalltalkbigot at gmail.com
Wed Dec 3 17:03:27 UTC 2008


On Wed, Dec 3, 2008 at 2:45 AM, Avi Bryant <avi at dabbledb.com> wrote:
> On Wed, Dec 3, 2008 at 2:01 AM, Igor Stasenko <siguctua at gmail.com> wrote:
>> in squeak, there is one assymetry in handling names, when used in
>> array literals:
>>
>> #(true false nil foo)  = (Array with: true with: false with: nil with: #foo)
>>
>> instead of:
>>
>> #(true false nil foo)  = (Array with: #true with: #false with: #nil with: #foo)
>>
>> i wonder, is such parse rules standartized or belongs only to squeak?
>
> Last time this came up, I believe we established that that's the ANSI
> standard behavior.

It is, while the second option is the original Smalltalk-80 behavior
(not explicitly discussed in the Blue Book). I believe Squeak used to
behave that way too.

--Vassili



More information about the Squeak-dev mailing list