Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13615 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48998 invoked by uid 1010); 29 Oct 2004 23:29:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48318 invoked from network); 29 Oct 2004 23:29:48 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 29 Oct 2004 23:29:48 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i9TNTmYU018233 for ; Sat, 30 Oct 2004 01:29:48 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i9TNTkT3018222; Sat, 30 Oct 2004 01:29:46 +0200 Date: Sat, 30 Oct 2004 01:29:46 +0200 (CEST) X-X-Sender: derick@localhost To: Andi Gutmans cc: PHP Developers Mailing List In-Reply-To: <5.1.0.14.2.20041029162045.0439b9c0@localhost> Message-ID: References: <20041029193421.9557.qmail@pb1.pair.com> <418294D9.4070700@prohost.org> <20041029193421.9557.qmail@pb1.pair.com> <5.1.0.14.2.20041029162045.0439b9c0@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] Re: Negative string offset support From: derick@php.net (Derick Rethans) On Fri, 29 Oct 2004, Andi Gutmans wrote: > Yeah, I also thought the word "need" is a bit strong :) It's more like > "syntactic sugar which is nice-to-have" As I just told Ilia on IRC, I think we should not add this (now) for a couple of reasons: - Adding new language constructs in mini releases is IMO not the way to go as it will make it possible impossible to run script that use this new construct not even parse on PHP 5.0.x servers. Adding normal new functions does not have this problem of course, as those scripts are still parsable. - Substring works just fine, adding this for performance reasons is IMO invalid. - People might want to take this even further and request {1,3}, {-3,2} and the like. (This was expressed in the past when talking about this stuff) regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org