syntax change for 1.9?

R

Roger Pack

case 3
when true && a = 3 rescue nil : false
end


this code errs in 1.9 and succeeds in 1.8.6
Was this deliberate?
[please ignore the lameness of the code--it was just a simplified
example].
Thanks!
-R
 
N

Nobuyoshi Nakada

Hi,

At Tue, 17 Jun 2008 14:00:39 +0900,
Roger Pack wrote in [ruby-talk:305381]:
case 3
when true && a = 3 rescue nil : false
end

Using a colon instead of `then' wasn't an official feature.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top