From: Dave Thomas Date: 2002-07-07T22:58:11+09:00 Subject: Re: Pre-RCR... nil.empty? David Alan Black writes: > But you could also argue that there's an element of chance or > coincidence here. Going back to your original problem, it's true that > cgi.params["param"][0] could be either nil or "", and that both of > those are unacceptable. But nil and "" crop up, in this context, for > different reasons: nil indicates no param named "param", while "" > indicates an existent but zero-length value. Of course, in a pure sense you're right. But if you ever wrote a decent sized web application in Ruby, you might change your mind :) Dave