Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18393 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72663 invoked by uid 1010); 24 Aug 2005 23:38:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72648 invoked from network); 24 Aug 2005 23:38:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2005 23:38:18 -0000 X-Host-Fingerprint: 64.143.190.1 mail1.worldmsp.com Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from ([64.143.190.1:2132] helo=mail1.worldmsp.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 0C/43-28235-AE40D034 for ; Wed, 24 Aug 2005 19:38:18 -0400 Received: from Unknown [10.0.10.24] by mail1.worldmsp.com - SurfControl E-mail Filter (4.7); Wed, 24 Aug 2005 18:34:37 -0500 Received: from DALSQL2.WorldMSP.org ([10.0.10.25]) by DALEXCMAIL1.WorldMSP.COM with Microsoft SMTPSVC(6.0.3790.0); Wed, 24 Aug 2005 18:38:13 -0500 Received: from [10.1.11.108] ([68.90.52.220]) by DALSQL2.WorldMSP.org over TLS secured channel with Microsoft SMTPSVC(6.0.3790.0); Wed, 24 Aug 2005 18:38:13 -0500 Message-ID: <35C1A8E0-79E0-4454-8378-01EA0C43BF18@hymiegladstone.com> To: internals@lists.php.net Date: Wed, 24 Aug 2005 18:38:12 -0500 MIME-Version: 1.0 (Apple Message framework v728) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.728) X-OriginalArrivalTime: 24 Aug 2005 23:38:13.0527 (UTC) FILETIME=[E4E78A70:01C5A904] X-SEF-99BFA91D-558B-4010-945D-FE3A9B5F335D: 1 References: <42FCE0E4.604@lerdorf.com> <4309DC9B.8020904@peda.net> <19310545471.20050822200017@marcus-boerger.de> <877e9a17050822231876308b57@mail.gmail.com> <5.1.0.14.2.20050823220004.07898ec0@localhost> <877e9a17050823215844e885c2@mail.gmail.com> <877e9a1705082322241fc30bca@mail.gmail.com> <6.2.3.4.2.20050824161757.05e7f940@localhost> In-Reply-To: <6.2.3.4.2.20050824161757.05e7f940@localhost> Subject: PHP 6.0 Wishlist From: jmil@hymiegladstone.com (Jordan Miller) I just joined this list and caught this thread (no suggestions like this in the archive)... For v6.0... how about allowing comparison operator expressions like the following: if (2 < $x <= 4) {} I prefer this concise way as it is common for mathematics expressions, and much easier to grasp physically on first glance. From what I can tell, this expression can currently only be written as: if ( $x > 2 && $x <= 4) {} Would adding this syntax to PHP be incredibly difficult or lead to performance slowdowns? I think I remember reading that PHP always evaluates expressions from right to left, so I guess there may be a considerable codebase change required. Maybe there could be a default function workaround for this or some other way to automagically process these more concise expressions without too much of a slowdown?? Just curious. Jordan