From: "David A. Black" Date: 2004-09-19T06:12:33+09:00 Subject: Re: [Nuby Question] Return value of while loop. Hi -- On Sun, 19 Sep 2004, Brian Schr�der wrote: > > :~$ irb > > irb(main):001:0> (i *= 2) > 100 and break i while i = i || 1 > > => 128 > > You won, and I'm even able to grasp what you have written. So no > extra points for obfuscation ;) Obfuscation is in any case not a Ruby tradition :-) Actually we almost had a de-obfuscation contest at the first Ruby conference. The idea was that people would contribute horribly written, unclear code (yes, I know that obfuscated doesn't have to mean horribly written :-) and the contest would be to make it clear and elegant. The contest never happened; the conference, in November 2001, did take place, but the events of that September slowed everyone down and some of the things we'd planned fell by the wayside. David -- David A. Black dblack@wobblini.net