Scripting languages and IDEs (was: If python goes EToys...)
Damien Pollet
damien.pollet at gmail.com
Thu Aug 24 19:39:50 UTC 2006
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
|