From: Martin DeMello Date: 2008-06-12T03:23:02+09:00 Subject: Re: each with else On Wed, Jun 11, 2008 at 11:18 AM, Robert Dober wrote: > > Martin I think you did not read my reply reagrding this technique, it > is funny though that you want to define Object#is_empty, I would say > that the Ruby way would be Object#empty? I did - mine is different in that it doesn't require explicit use of the built-in control structures like if/else or and > I gave an implementation for Enumerable#empty? using #last, this was > an error because there is no Enumerable#last, I tested with Range > only. > > But the point is that I started to think about "emptiness" as a concept. Yep, I was exploring the other half of the coin - how to make the most convenient use of empty? once defined. martin