[squeak-dev] The Inbox: Kernel-fbs.695.mcz
Bert Freudenberg
bert at freudenbergs.de
Fri Jun 8 11:42:11 UTC 2012
On 08.06.2012, at 13:00, Frank Shearar <frank.shearar at gmail.com> wrote:
> On 8 June 2012 08:57, Stéphane Rollandin <lecteur at zogotounga.net> wrote:
>>> * Use the canonical Array empty rather than #();
>>
>>
>> What's wrong with #() ?
>
> Nothing hugely. I made the change because I remembered Chris Muller's
> earlier statement about using a canonical instance. I like canonical
> instances.
If we think a canonical instance is preferable, then we should change the compiler. IMHO, "Array new" adds unnecessary clutter over "#()".
FWIW, I'd call #() canonical, whereas "Array empty" is decidedly not part of the Smalltalk canon.
- Bert -
More information about the Squeak-dev
mailing list
|