Re: Supporting Binary Notation for Integers
| From: | Gustavo Lopes | Date: | Wed, 10 Nov 2010 22:51:30 +0000 |
| Subject: | Re: Supporting Binary Notation for Integers | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50134@lists.php.net to get a copy of this message | ||
On Wed, 10 Nov 2010 21:31:19 -0000, Jonah H. Harris <jonah.harris@gmail.com> wrote:
Hey all, I was recently working on some code which made use of bit arrays and I came across feature request 50648: Format for binary numbers. While it's just more syntactic sugar (0b11111011010 vs 2010/0x7da/03732), it doesn't seem like too bad of an idea and it is also supported by a few other languages. If there's any interest, I'll clean up the patch and resubmit.I think it's a good idea. It won't spark interest in those that have already memorized the more compact hexadecimal representation of nibbles, but otherwise it's useful a simple non-BC breaking addition. -- Gustavo Lopes