Yukihiro Matsumoto wrote: > > Hi, > > In message "[ruby-talk:11053] Re: to_s and <<" > on 01/02/18, "Hal E. Fulton" <hal9000 / hypermetrics.com> writes: > > |I've never really understood the relationship between > |to_s and to_str (or similarly between to_a and to_ary). > > 'to_s' is a mean to convert something into a string (if you really > want to), OTOH 'to_str' is a mean for something that wants to pretend > to be a string. to_a and to_ary are in similar relationship. Wouldn't name like "as_str" and "to_str" make more sense?