From: nobu.nokada@... Date: 2004-02-04T07:24:28+09:00 Subject: Re: RCR draft for enhanced "case..when..else..end" syntax Hi, At Wed, 4 Feb 2004 03:11:35 +0900, Guoliang Cao wrote: > Just tried on Ruby 1.6.8. It uses "then" instead of ":". So there's no > backward incompatibility. $ ruby-1.8 -e 'if /^\w+/ =~ "abc": puts $& end' abc $ ruby-1.8 -e 'case "abc" when /^\w+/: puts $& end' abc $ ruby-1.8 -e 'while l = gets: p l end' abc "abc\n" Now ":" can be placed anywhere instead of "then", and "do" for loops. -- Nobu Nakada