From: Martin Weber Date: 2002-11-26T11:02:24+09:00 Subject: Re: Default value of property On Tue, Nov 26, 2002 at 10:44:50AM +0900, ahoward wrote: > [snipsnap] > how about > > object.property and object.property.method or default_value Reading something like that reminds me of an idea (yeah, flame me for not having searched the archives if it came up already) of having an accessor to put an expression into the context of previous expressions. That is, object.property and .method or default_value, where the leading dot sets the 'method' into the context of 'object.property'. Mind you, not setting any _variables_ or so, but switch the context (in this case, into a class which solely consists of object.property, kind of anonymous singleton) Maybe also .. for winding up one context (or the usual nothing leading, write it out). Well, this is just a weird idea, without any discussions about PRO and CON etc... -Martin PS: Happy flaming.