Re: Supporting Binary Notation for Integers
| From: | Christian Schneider | Date: | Fri, 12 Nov 2010 03:57:23 +0000 |
| Subject: | Re: Supporting Binary Notation for Integers | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-50162@lists.php.net to get a copy of this message | ||
On Thu, Nov 11, 2010 at 3:57 PM, Jonah H. Harris <jonah.harris@gmail.com> wrote:
> RFC added. I'm not sure what the protocol for RFCs is, but I put it under
> the In Discussion heading. Sorry if I was wrong.
> http://wiki.php.net/rfc/binnotation4ints
Just one little note: If I'm not mistaken this would introduce a subtle BC break when doing the
comparison "0b1" == 1 which is false now but would return true afterwards, right? Likewise
is_numeric("0b1") would suddenly return true.
Is it worth the (possible) WTF for something hardly ever used?
- Chris