pipe
Yoshiki Ohshima
yoshiki at squeakland.org
Thu Aug 30 18:39:07 UTC 2007
> versus a single method where optional parameters are noted in some fashion:
>
> aMethod [with: aParm1] [and: aParm2] [plus: aParm3]
> aParm1 unassigned: defaultParm1.
> aParm2 unassigned: defaultParm2.
> aParm3 unassigned: defaultParm3.
>
> Square brackets borrowed from grep to mean "optional parameter" with the
> unassigned method of course meaning "if not nil then assign this
> value".
This line is more understandable. I saw Olabl and the Tk binding
for it back in 2000 (Jacques had a Smalltalk-like browser, although it
was only for viewing). Since then, the idea is always back in my
head...
-- Yoshiki
More information about the Squeak-dev
mailing list
|