From: "ara.t.howard" Date: 2008-01-17T05:42:24+09:00 Subject: Re: ruby annoyances ... mine is line continuation, what's yours? On Jan 16, 2008, at 12:44 PM, scooterm@hotmail.com wrote: > > puts 'cat :: dog :: elephant :: mouse :: gorilla'. > split('::'). > map{|str| str.strip() }. > select{|str| str['o']}. > join("\n") have fun debugging that one - the stack trace from any error on any of those lines will come from the same line. fine for quick hacks, but deep method chaining is evil if there is even a remote chance that the error will bubble up to a logfile somewhere for some poor soul to grok. anything that makes crazy line chaining even easier would probably annoy me btw puts 'cat :: dog :: elephant :: mouse :: gorilla'.scan(/\w*o\w*/) dog mouse gorilla ;-) a @ http://drawohara.com/ -- sleep is the best meditation. h.h. the 14th dalai lama