in reply to Re^2: NaNs are true
in thread NaNs are true
I never said anything about string context. And I thought it was pretty well understood we were talking about boolean context anyway, since you're going on about whether things evaluate to true or false.
"foo" in boolean context is true, not false. And that was my point: "foo", being "not a number", is true; and so NaN, being "not a number", ought to be true as well (if one follows this line of reasoning). So, yes, there is no inconsistency, if one buys this logic. In which case — what are you complaining about?
Update: Argh. I meant inconsistency. Corrected. :-P
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: NaNs are true
by syphilis (Archbishop) on Feb 28, 2011 at 05:45 UTC | |
by jdporter (Paladin) on Feb 28, 2011 at 12:45 UTC | |
by syphilis (Archbishop) on Mar 01, 2011 at 02:56 UTC | |
by jdporter (Paladin) on Mar 01, 2011 at 03:49 UTC | |
by ikegami (Patriarch) on Feb 28, 2011 at 17:14 UTC | |
by syphilis (Archbishop) on Mar 01, 2011 at 02:44 UTC | |
by ikegami (Patriarch) on Mar 01, 2011 at 05:12 UTC |