From: patrick-may@... (Patrick May) Date: 2002-07-10T05:47:43+09:00 Subject: Re: Pre-RCR... nil.empty? Tom Sawyer wrote in message news:<1026194588.24015.238.camel@silver>... > did i miss something? how will it become unnecessary? currently: cgi["field"] == cgi.params["field"] # <= these return an array string = cgi["field"][0] # <= array may be empty, thus [0] may be nil and must be tested future: cgi["field"] == cgi.params["field"].join # <= returns a string cgi["field"].empty? # <= true if "field" is missing or empty. Most of (my) time with web applications, I don't care about testing if a field is missing. I do care about testing to make sure it's value is something sensible. Thus, I don't miss the distinction of whether a field is missing or empty. ~ Patrick