default args (was Re: Any reason for assigning block parameter
in inject:into:)
Keith Hodges
keith_hodges at yahoo.co.uk
Sun Apr 29 16:10:32 UTC 2007
Lukas Renggli wrote:
>> I think JavaScript et al. need that because they don't have method
>> overloading or keyword arguments like Smalltalk does. The patten
>> mentioned below simply isn't needed.
>
> My example was a bit JavaScript biased, but wh about something like that?
>
> aString := aString asUppercase.
> aNumber := aNumber asInteger.
> ...
+1
Keith
More information about the Squeak-dev
mailing list
|