rfc:inconsistent-behaviors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:inconsistent-behaviors [2014/02/05 21:45] – sanfordwhiteman | rfc:inconsistent-behaviors [2014/02/11 19:43] – Expanded notes in comparison juggling section sanfordwhiteman | ||
---|---|---|---|
Line 25: | Line 25: | ||
Type juggling only works for INTEGER or HEX like strings. | Type juggling only works for INTEGER or HEX like strings. | ||
+ | |||
+ | Most problematic is HEX like strings being auto-coerced during | ||
+ | comparison, but using //different rules// from manual casting. That | ||
+ | is, ( 0x0A == " | ||
+ | although " | ||
+ | |||
+ | This despite http:// | ||
+ | states clearly that for number-string comparison, we " | ||
+ | strings and resources to numbers." | ||
+ | string patterns cannot be " | ||
+ | a " | ||
+ | casting for the same string. It is hard to view it is anything but a | ||
+ | bug that it does not. | ||
=== HEX === | === HEX === |
rfc/inconsistent-behaviors.txt · Last modified: 2021/03/27 14:31 by ilutov