[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [RFC] New Smalltalk syntax v2

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] [RFC] New Smalltalk syntax v2
Date: Fri, 16 Mar 2007 09:52:38 +0100
User-agent: Thunderbird (Macintosh/20070221)

Robert Collins wrote:
> On Fri, 2007-03-16 at 09:28 +0100, Paolo Bonzini wrote:
>> Here is what I collected from the thread:
> You might find looking at the syntax used for smalltalk in pepsi
> interesting, as it also does not use !!'s.

It is, but it is not as easily extensible (e.g. no Namespace
support).  I tried to pick the best of his syntax and S#'s AML
or whatever it is called.  For example, at one point, I had a
distinction between metadata, like

   { category: 'abc' }

and other pragmas.  I later dropped it.  I actually prefer
{...} to <...> but I'm forced to use <...> because of the ST-80
primitive syntax.

One other bit I don't like of Ian's syntax is:

   ArrayedCollection : SequenceableCollection ( size )

because it looks like it makes "addInstVarName:" hard.  With
the proposed syntax, it would be

   SomeClass extend [
       | newInstVar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]