On Sat, 24 Jan 2004, Austin Ziegler wrote:

> Date: Sat, 24 Jan 2004 12:44:54 +0900
> From: Austin Ziegler <austin / halostatue.ca>
> Newsgroups: comp.lang.ruby
> Subject: Re: [ANN] Ruby/Extensions v0.3 released
> 
> On Sat, 24 Jan 2004 11:13:35 +0900, T. Onoma wrote:
> > On Saturday 24 January 2004 12:58 am, Gavin Sinclair wrote:
> >> Those methods make sense only in very specific cases.  They assume you
> >> want +nil+ to be like a valid string, integer, array, etc.  That's an
> >> assumption I (almost) never want to make in my code.
> ...
> > anyway, i think you've answered my question. Ruby/Extensions is intended
> > as a restricted set of approved inclusions rather than an open collection
> > of acceptable inclusions. that's fine. i just wanted to be clear on the
> > goals of the project.
> 
> I don't think that's what Gavin said at all. I don't particularly consider
> your additions to NilClass to be "acceptable." I certainly treat nil as a
> non-value, not an empty value. If I think that I might get a nil value, I
> *always* test for #nil?. It might be okay to have NilClass#to_s (or is it
> #to_str) return '' (nil-string), but I personally don't ever rely on the
> NilClass#to_a or NilClass#to_i behaviours.
> 
> -austin
> --
> austin ziegler    * austin / halostatue.ca * Toronto, ON, Canada
> software designer * pragmatic programmer * 2004.01.23

i'm with you austin - that way leads to p*** style debugging sessions!

-a
-- 

ATTN: please update your address books with address below!

===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| STP     :: http://www.ngdc.noaa.gov/stp/
| NGDC    :: http://www.ngdc.noaa.gov/
| NESDIS  :: http://www.nesdis.noaa.gov/
| NOAA    :: http://www.noaa.gov/
| US DOC  :: http://www.commerce.gov/
|
| The difference between art and science is that science is what we
| understand well enough to explain to a computer.  
| Art is everything else.  
|   -- Donald Knuth, "Discover"
|
| /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done' 
===============================================================================