From: martindemello@... (Martin DeMello) Date: 2003-06-23T21:56:35+09:00 Subject: Re: String#decorate Thomas Hurst wrote in message > > I'm still not seeing much point :) Just that I prefer the look of foo.bar.baz.perform {|a| f(a)} # perform is a nice generalisation to objects to either a = foo.bar.baz a = f(a) or (specifically for strings) "gunk #{foo.bar.baz} moregunk" because I frequently think of the decoration as the last step in a series of transformations, not as a sort of Cish main() that calls the other transformations. The reason I limited it to strings is that I seldom do {a = f(a)} type transformations for anything other than strings and numbers, and number manipulations I think of in a more functional than OO syntax anyway. martin