From: dblack@... Date: 2006-03-14T23:26:45+09:00 Subject: Re: Alternate notation for eigenclass Hi -- On Tue, 14 Mar 2006, Johan Veenstra wrote: > On 3/14/06, ssmoot@gmail.com wrote: >> >> I don't like it. Why do we need special notation? x.eigenclass.foo is >> instantly recognizeable. x!foo is nice and short, but it also adds to >> the syntax of the language, raising the bar for newcomers. >> >> I don't suppose that's necessarily a reason to dismiss it, but I would >> err on the side of simplicity unless there's a really compelling reason >> not to. I favor the "and-call" operator because it's a shortcut to a >> really common pattern. I'm not seeing that you need to access the >> eigenclass often enough to justify new syntax specifically for it >> though. > > > Maybe 'myclass' or 'selfclass' instead of 'eigenclass' Or singleton_class, which is what it's called :-) David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) "Ruby for Rails" chapters now available from Manning Early Access Program! http://www.manning.com/books/black