On 18/09/2007, Brent Pinkney brent@zamail.co.za wrote:
+10000 for:
self add: (Kernel Array new: 4).
Nice :)
Period has a potential conflict with expression separator, and double-colon could be kept for variadic messages or argument-related stuff (currently, when there is a colon, an argument is not far, so it would be nice to keep this association).
What about underscore, since it's not used elsewhere in the syntax ;-) Kernel_Array looks like an identifier, Kernel _ Array can be a binary message...
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@lists.squeakfoundation.org [mailto:squeak-dev- bounces@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 -