Quick comparison of two Namespaces proposals

Michael van der Gulik mikevdg at gmail.com
Tue Sep 18 21:12:14 UTC 2007


Array is a class, not a message. This is /not/ elegant and simply doesn't
make sense. This is my last comment on this approach.

What is possible is:

self add: (Kernel-Array new: 4).

Here, #- is a message.

Michael.


On 9/19/07, Brent Pinkney <brent at zamail.co.za> wrote:
>
>
> +10000 for:
>
> self add: (Kernel Array new: 4).
>
> This mechanism preseves the elegant foundation of Smalltalk: 'Everyting is
> an Object, which receives a messages and returns an object'.
> In this (Dan's ?) solution, the implementation is late bound and can use
> the same lookup algorithm as used for messages.
>
> The other solutions lack this elegance.
>
> On Dinsdag, 18 September 2007, Ron Teitelbaum wrote:
> > +1 for ::
> >
> > Even if it is really
> >
> > self add: (Kernel::Array new: 4).
> >
> > :)
> >
> > Ron
> >
> > > -----Original Message-----
> > > From: squeak-dev-bounces at lists.squeakfoundation.org [mailto:
> squeak-dev-
> > > bounces at lists.squeakfoundation.org] On Behalf Of Bert Freudenberg
> > > Sent: Tuesday, September 18, 2007 6:31 AM
> > > To: The general-purpose Squeak developers list
> > > Subject: Re: Quick comparison of two Namespaces proposals
> > >
> > > On Sep 18, 2007, at 11:55 , Michael van der Gulik wrote:
> > >
> > > > self add: Kernel.Array new: 4.
> > > > self add: Kernel::Array new: 4.
> > > >
> > > > What do other people think?
> > >
> > > +10 for ::
> > >
> > > Though I hope this won't become a bikeshed discussion of syntax, but
> > > actually result in a Namespace solution getting adopted.
> > >
> > > - Bert -
> > >
> > >
> >
> >
> >
> >
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070919/d079c9d0/attachment.htm


More information about the Squeak-dev mailing list