From: Dave Thomas Date: 2004-06-09T00:51:24+09:00 Subject: Re: Expressing intent in method calling... On Jun 8, 2004, at 9:43, Richard Kilmer wrote: > This is not a continuation of the type thread other than trying to > continue > to discuss the ideas of adding metadata that could be used to help the > runtime environment of Ruby. Before anyone says anything, I have > built lots > of Ruby code without this, and the runtime is just fine...think of > this as > exploration. Disregard all the other syntax I wrote on earlier...and I > do > not care whether something is Hash-like, or is_a? Duck ;-) > > class Person > attr_accessor :name > end > > def greet(person) > puts "Hello there #{person.name}" > end Isn't this effectively "to_name" or "as_name"? Cheers Dave