---- Original Message ---- > ---- Original Message ---- >> Hi, >> At Tue, 3 Feb 2004 23:35:25 +0900, >> Guoliang Cao wrote: >>> ... backwards incompatibility >> ? >>> 2. "when" takes 1 or more clauses separated by ":"; each clause by itself >>> can be separated by "," (this is supported in current syntax). >> "when" clause can be terminated by ":" now. It can conflict. > Really? In the Pragmatic Programmer's Guide, it didn't mention ":" but uses > "then": > "...and you also need a then keyword if the expression is on the same line > as the condition." Just tried on Ruby 1.6.8. It uses "then" instead of ":". So there's no backward incompatibility. Cao >>> 4. "_" means skipping evaluation of the corresponding "case" expression. >> It feels ugly a bit, to me. > "~" or whichever looks good to most people and doesn't cause backward > incompatibility problem. > Cao