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
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
Hi,
At Tue, 17 Jun 2008 14:00:39 +0900,
Roger P. 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.
when true && a = 3 rescue nil : false
Using a colon instead of `then’ wasn’t an official feature.
Thanks!
=R
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs