[Petal] [PATCH] Options via constructor rather than package
globals
Steve Purkis
spurkis at mkdoc.com
Thu Jun 5 15:47:50 BST 2003
On Thursday, June 5, 2003, at 01:26 pm, William McKee wrote:
>>> 2. cascade-able accessor methods which let you do:
>>
>> Now I find this really, really useless :)
>
> I must agree. I've never seen this syntax before and am very thankful
> for that. It looks terrible. Is this a Java-inspired concept?
No, it's from Smalltalk. (But then, Java copied everything from there
so... ;-)
By default, methods return the current object in Smalltalk. It's
almost like an implicit 'with' statement...
-Steve
More information about the Petal
mailing list