Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71661 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69790 invoked from network); 28 Jan 2014 09:19:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2014 09:19:51 -0000 Authentication-Results: pb1.pair.com header.from=me@rouvenwessling.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=me@rouvenwessling.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rouvenwessling.de designates 5.35.242.46 as permitted sender) X-PHP-List-Original-Sender: me@rouvenwessling.de X-Host-Fingerprint: 5.35.242.46 rouvenwessling.de Linux 2.6 Received: from [5.35.242.46] ([5.35.242.46:36040] helo=lvps5-35-242-46.dedicated.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/4A-01140-53677E25 for ; Tue, 28 Jan 2014 04:19:50 -0500 Received: by lvps5-35-242-46.dedicated.hosteurope.de (Postfix, from userid 5001) id 1703E69F14B1; Tue, 28 Jan 2014 10:19:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lvps5-35-242-46.dedicated.hosteurope.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, MIME_QP_LONG_LINE autolearn=unavailable version=3.3.1 Received: from [10.20.175.230] (tmo-101-130.customers.d1-online.com [80.187.101.130]) by lvps5-35-242-46.dedicated.hosteurope.de (Postfix) with ESMTPA id B9D5B69F0513; Tue, 28 Jan 2014 10:19:45 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (11B554a) In-Reply-To: Date: Tue, 28 Jan 2014 10:19:43 +0100 Cc: Yasuo Ohgaki , Andrea Faulds , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <52DDBAE5.2010803@ajf.me> <52E6FD70.4010005@ajf.me> <52E70943.3010700@ajf.me> To: Tjerk Meesters Subject: Re: [PHP-DEV] Re: [VOTE] [RFC] Alphanumeric Decrement From: me@rouvenwessling.de (=?utf-8?Q?Rouven_We=C3=9Fling?=) > On 28.01.2014, at 07:12, Tjerk Meesters wrote: >=20 > Btw, doing flip/flop can be done with `$val =3D (bool)1 - $val;` as well := ) There's an even easier way: $val =3D !$val; Personally I don't see a need to support increment/decrement for booleans. I= f at all they should be treated like they were cast to an int first. Best regards Rouven=