* Dan Fitzpatrick (Feb 22, 2005 14:00):
> true.empty?  => false
> false.empty? => true

> These are not quite as intuitive as NilClass and Fixnum but I agree they 
> would be nice to have as well.

How is 0 empty?  0 is a number representing nothing; it's not empty.

How is nil empty?  It's nothing, thus it can't be empty.

A string is a container of symbols/character.  A string containing no
symbols/characters is empty.

An array or a hashtable is a container of elements/items.  An array or a
hashtable containing no elements/items is empty.

Stop equating [] and nil.  Ruby is thankfully not PHP,
	nikolai

-- 
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}