From: Mike Berrow Date: 2008-02-01T02:04:38+09:00 Subject: Re: can ik make this more beautifull? Peter Hickman wrote: > Mike Berrow wrote: >> That is apparently a matter of opinion. >> I find the single line alternative clear, concise and quite beautiful. >> It reads just like a sentence for me. >> .. > > When you have to debug or maintain multiply nested ?: logic you will > find yourself questioning the parentage of the original programmer. ?: > is useful to keep minor details from getting verbose, nested ?: is the > path to madness. Well you might, but I won't. Like I said, it's a matter of opinion. I don't have problem with nested ?: I usually use brackets with them. For me that's works as well as indentation and verticality. -- Mike -- Posted via http://www.ruby-forum.com/.