Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > syntax change for 1.9?

Reply
Thread Tools

syntax change for 1.9?

 
 
Roger Pack
Guest
Posts: n/a
 
      06-17-2008
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
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Nobuyoshi Nakada
Guest
Posts: n/a
 
      06-17-2008
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.

--
Nobu Nakada

 
Reply With Quote
 
 
 
 
Roger Pack
Guest
Posts: n/a
 
      06-17-2008
>> when true && a = 3 rescue nil : false
>
> Using a colon instead of `then' wasn't an official feature.


Thanks!
=R
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax Checker that's better than the normal syntax checker Jacob Grover Ruby 5 07-18-2008 05:07 AM
Syntax bug, in 1.8.5? return not (some expr) <-- syntax error vsreturn (not (some expr)) <-- fine Good Night Moon Ruby 9 07-25-2007 04:51 PM
[ANN] SqlStatement 1.0.0 - hide the syntax of SQL behind familiarruby syntax Ken Bloom Ruby 3 10-09-2006 06:46 PM
A Paradise DNS address change? What change? There was no change. Tony Neville NZ Computing 7 09-22-2006 01:02 PM
Syntax highligth with textile: Syntax+RedCloth ? gabriele renzi Ruby 2 12-31-2005 02:44 AM



Advertisments