From: Niklas Frykholm Date: 2001-08-01T16:12:31+09:00 Subject: [ruby-talk:18941] Re: newbie autovivification > Please make Perl autovivification possible in Ruby. > > foo[obj]="hello" The ruby one liner: (foo ||= {})[obj] = 'hello' Autovivification is convenient, but can also lead to unnoticed bugs, for example, the misspelling fool[obj] = 'hello' would not be detected. > Is it possible to add C style loop to Ruby? Please no. C loops are ugly. for(a; b; c) gives no indication of what a, b and c means. Of course, you learn with time, but you shouldn't have to. 5.times, 1.upto(10) is much cleaner. Use while loops for anything more complex. It makes the code easier to read. > Please add this cool Python stuff to Ruby. > > If 25 < foo < 75 : print "middle" This would be nice, but it requires hacking the parser, which (as far as I understand) is already a complex beast. At least "25 < x < 75" raises an exception in Ruby. It doesn't silently give the wrong answer (as in C). // Niklas