From: Paul Prescod Date: 2001-04-24T06:34:29+09:00 Subject: [ruby-talk:14109] Re: Negative Reviews for Ruby and ProgrammingRuby "Benjamin J. Tilly" wrote: > > >===== Original Message From Paul Prescod ===== > [...]There is one and only one > >string in Python that is false and it is the empty string. There is > >typically no way for "user data" to generate an empty string (how do you > >type an empty string!) so it is quite safe to use it as a false value. > [...] > > I would need to look closely at Python, but in most languages > you can get a string of no length by feeding it an eof when > it expects to read user input. I wasn't clear. Your Perl problem arises because there is more than one false value for strings: "", "0", "0.0" and you must keep them all in mind while working with strings. That's not the case for Python. And of course it is also not a problem for Ruby either. What happens in end-of-file for Ruby? Can a read() value return failure in multiple ways or just one? -- Take a recipe. Leave a recipe. Python Cookbook! http://www.ActiveState.com/pythoncookbook