From: YANAGAWA Kazuhisa Date: 2004-02-05T21:03:59+09:00 Subject: Re: RCR draft for enhanced "case..when..else..end" syntax In Message-Id: <1851592490.20040204140703@lemurnetworks.net> Guoliang Cao writes: > About my example, I don't think people should do a complex design. > "if..elsif" is the answer in current Ruby capability. I wonder why those who have informed that case which has no following expressions is equivalent to `case true', and when clause can take an arbitrary expression, doesn't try: case when a == "aaa" && b == "bbb" puts "lowercase" when a == "AAA" && b == "BBB" puts "uppercase" else puts "???" end That looks nice, doesn't it? -- kjana@dm4lab.to February 5, 2004 It is comparison that makes men happy or miserable.