Scripting languages and IDEs (was: If python goes EToys...)
Alejandro F. Reimondo
aleReimondo at smalltalking.net
Thu Aug 24 22:19:53 UTC 2006
> MyClass instVars: #(x y); "why is it a string in current smalltalks ???"
The symbols #x and #y will not be instantiated
until you use it as a method selector.
best,
Ale.
----- Original Message -----
From: "Damien Pollet" <damien.pollet at gmail.com>
To: "The general-purpose Squeak developers list"
<squeak-dev at lists.squeakfoundation.org>
Sent: Thursday, August 24, 2006 4:39 PM
Subject: Re: Re: Scripting languages and IDEs (was: If python goes EToys...)
> On 8/24/06, Marcel Weiher <marcel at metaobject.com> wrote:
> > Interesting discussion, as I have been wrestling with this very issue
> > in my Objective-Smalltalk / stsh work for some time now.
>
> can we play with stsh ? besides systrace shell google only found a
> mail from you :)
>
> > > MyClass defineMethod: #mymethod withBody: [ ^ self ]
> >
> > This is close to what I currently have, but it's not really very pretty.
>
> My idea was to find a nice hybrid syntax of method patterns and blocks
> as a notation for CompiledMethods...
>
> #MyClass << Object. "MyClass should become a valid identifier at this
point"
> MyClass instVars: #(x y); "why is it a string in current smalltalks ???"
>
> >> [myMethod: foo with: bar| "but parsing this sucks"
> |a b c|
> foo: qux
> ]; "semicolumn strikes back :D but here it's a regular cascade"
>
> >> anotherMethodHere
>
> Here are other ideas to give actual selectors to blocks:
>
> ##sel1: arg1 sel2: arg2 [ |locals| body ] "all this denotes a
CompiledMethod"
>
> #sel1:arg1#sel2:arg2 "enhanced symbol, where each pair selectorPart +
> argument name are separated, but no space and the method declaration
> needs to be a kwd message to give the body as a block
>
> --
> Damien Pollet
> type less, do more
>
More information about the Squeak-dev
mailing list
|