Re: 0, true or false? (was: PERL6STORM #0052)

2000-10-02 Thread David L. Nicol

Bart Lateur wrote:

 Bitwise and, or and xor do distinguish strings from numbers, and return
 entirely different kinds of results. Why can't anything else?

Absolutely.  There is such a thing as Too Much Convenience.  I think
BOOL as a context or an accessor method should be separate from STRING and
NUMBER so that if you know, you can suggest which behavior you want out
of a particular scalar variable, or stick with the misguidable default.



-- 
  David Nicol 816.235.1187 [EMAIL PROTECTED]
"After jotting these points down, we felt better."



Re: 0, true or false? (was: PERL6STORM #0052)

2000-10-02 Thread Nathan Wiger

"David L. Nicol" wrote:
 
 Bart Lateur wrote:
 
  Bitwise and, or and xor do distinguish strings from numbers, and return
  entirely different kinds of results. Why can't anything else?
 
 Absolutely.  There is such a thing as Too Much Convenience.  I think
 BOOL as a context or an accessor method should be separate from STRING and
 NUMBER so that if you know, you can suggest which behavior you want out
 of a particular scalar variable, or stick with the misguidable default.

See RFC 159 - BOOLEAN, STRING, and NUMBER are the three main methods.

-Nate