From: Ken Bloom Date: 2008-05-03T02:10:05+09:00 Subject: Re: Ruby 1.9 wishlist On Fri, 02 May 2008 11:37:33 -0500, coderrr wrote: > Hey I just put together a list of stuff I totally wish Ruby had and I > think would make a lot of people's lives better. > > In the order of importance: > > 1) rescue/ensure available in all blocks arr.each do |e| > e.do_something > rescue MyException > p :doh! > ensure > p :every_time! > end I'd like this too. > 2) two line if/while statements (like c): if true > p :true > p :im_outside_of_if This is not possible without turning Ruby into either Python (semantically significant whitespace) or Perl (required semicolons). -- Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/