From: Austin Ziegler Date: 2006-10-08T22:55:08+09:00 Subject: Re: nil being empty On 10/8/06, Robert Dober wrote: > On 10/8/06, Hal Fulton wrote: > > I do agree that making nil return true for #empty? is the > > wrong solution. > Then by simple logic, the right solution will be to have it return false No, that's by simplistic logic. This is *not* a boolean situation; nil is neither full nor empty. Is zero full or empty? Is a scrambled egg full or empty? Nil -- and fixnums -- belongs to an infinitely large class of things which are not-containers. Since they aren't containers, even asking whether such things are empty is a nonsensical question. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca