Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50134 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47080 invoked from network); 10 Nov 2010 22:51:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2010 22:51:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:40816] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/40-40603-6F12BDC4 for ; Wed, 10 Nov 2010 17:51:35 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 402597000487 for ; Wed, 10 Nov 2010 22:51:31 +0000 (WET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id 5LCeeP4ps-dB for ; Wed, 10 Nov 2010 22:51:30 +0000 (WET) Received: from mail2.ist.utl.pt (mail2.ist.utl.pt [IPv6:2001:690:2100:1::c]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 0A32B70003D2 for ; Wed, 10 Nov 2010 22:51:28 +0000 (WET) Received: from damnation.dulce.lo.geleia.net (unknown [IPv6:2001:470:94a2:2:dc38:b9de:61a9:b30]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 830892001A31 for ; Wed, 10 Nov 2010 22:51:27 +0000 (WET) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: internals@lists.php.net References: Date: Wed, 10 Nov 2010 22:51:30 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_IST?= Message-ID: In-Reply-To: User-Agent: Opera Mail/10.63 (Win32) Subject: Re: [PHP-DEV] Supporting Binary Notation for Integers From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Wed, 10 Nov 2010 21:31:19 -0000, Jonah H. Harris 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