Hi,
In message "Re: deciding between ruby and python"
on 04/04/05, Guillaume Marcais <guslist / free.fr> writes:
|Just a as we are on the subject. Should Ojbect#to_s return self.to_str
|if it is defined instead of the default value?
I encourage defining "to_str" along with string methods, i.e. by
defining "to_str", I expect the object to be a duck quacks like
strings. In that sense, you have to think before defining "to_str",
more than it seems, even though your proposal makes sense.
matz.