From: Robert Klemme Date: 2004-02-09T10:31:07+09:00 Subject: Re: RCR draft for enhanced "case..when..else..end" syntax "Sean O'Dell" schrieb im Newsbeitrag news:200402041127.02778.sean@celsoft.com... > On Wednesday 04 February 2004 11:07 am, Guoliang Cao wrote: > > About my example, I don't think people should do a complex design. > > "if..elsif" is the answer in current Ruby capability. > > Personally, I like the idea of a more readable way to replace the if...elsif > paradigm. It's a great idea! Hmm... As someone else pointed out, if you are in excessive need of such a construct, you should consider redesign. Case constructs (or if...elsif...end cascades) are regarded to be not very OO IMHO. Regards robert