Does anybody thought about having ...

stéphane ducasse ducasse at iam.unibe.ch
Thu Nov 18 22:01:25 UTC 2004


>> variable length argument methods
>> and default argument values
>>
>> because this would be really cool to have that in Squeak.
>> Ok of course this change the language but we could get rid of a lot 
>> of with:with:with: methods.
>
> Yes, we have been thinking about this. We had a script-level 
> implementation in JIVE (methods with optional arguments) and would 
> like to reintroduce them with Etoys2.

This is really nice in Lisp (and ruby).
When in Squeak?    :)

I think that once the new compiler will be in the image we will have 
much more freedom to experiment with Squeak bright future.

>> I also thought recently that something really missing in Smalltalk is
>> dictionary like classes
>> 	because we have named fixed attributes, variables unamed attributes
>> 	but often I would like to have variables (dictionary-based) 
>> attributes.
>
> Sounds a lot like "fields" in Tweak's object model. These can be used 
> like named instance variables but are actually held in a dictionary.

May be I did not problem yet with tweak. But I really think that what I 
describe is useful and help to code cleaner code.  I think that with 
the new compiler and what marcus is doing we can really get that easily 
and cheap.

Stef
>
> - Bert -
>
>
>




More information about the Squeak-dev mailing list