Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85271 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53826 invoked from network); 20 Mar 2015 10:38:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 10:38:26 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.179 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.160.179 mail-yk0-f179.google.com Received: from [209.85.160.179] ([209.85.160.179:35852] helo=mail-yk0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/0C-25408-1A8FB055 for ; Fri, 20 Mar 2015 05:38:26 -0500 Received: by ykcn8 with SMTP id n8so40234836ykc.3 for ; Fri, 20 Mar 2015 03:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=F1yfRdQAG1aweevOAxSwJQlQjTAo+UAH+G9yilxyljU=; b=YnncZdFpg+Skt5538m7IwQnrZ9XD2jxUiHrhxhek29FYQWqOeZoHbzPaYbjQL3DuU7 6BZUIvMkrkBdvkSDwUhKOAdbG7dNAURjkMNzFDEleMvBVNcXU+3L6UUVNxy3oY9hv2Ac Q9SbG5YeKIEQWXKYcWfw/mnHolIW0UC2hcXznal7kCkHD20aHZgBxoflaRFvqnJFDlDQ GCRjapfjIjDEQHv3hcTl3lkeATp7y2NUvMZmq0DabnNrmeIkIcOpxHbdSLtdfJTWnlok sTfaqqUI0KEpzGlbPEJS1miuiP4NkZC37Tr8e3Gz3V0rrfx6QMX8gTpKCiklUZw+tCO8 FT3g== MIME-Version: 1.0 X-Received: by 10.52.61.137 with SMTP id p9mr54211600vdr.68.1426847902581; Fri, 20 Mar 2015 03:38:22 -0700 (PDT) Received: by 10.52.177.7 with HTTP; Fri, 20 Mar 2015 03:38:22 -0700 (PDT) In-Reply-To: <550B39AA.2090706@garfieldtech.com> References: <550B39AA.2090706@garfieldtech.com> Date: Fri, 20 Mar 2015 10:38:22 +0000 Message-ID: To: Larry Garfield Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1136b57461cbea0511b5eaad Subject: Re: [PHP-DEV] RFC - Array slice syntactic sugar From: leight@gmail.com (Leigh) --001a1136b57461cbea0511b5eaad Content-Type: text/plain; charset=UTF-8 On 19 March 2015 at 21:03, Larry Garfield wrote: > Variations of this proposal have been discussed many times. I don't > recall what the pushback was but it's worth your time to check the archives > to see what the objections were and if you can address them, and/or if the > new engine in PHP 7 addresses them. (I suspect it has/will ameliorate a > lot of implementation-level issues with old proposals.) > I've tried implementing python style slice on both strings and arrays in the past (I don't seem to have an existing branch with it in any more though it seems). The biggest problems I hit were regarding the syntax, the functionality itself worked. Colons caused problems with ternary operators in the lexer, and I had an issue with commas too, but I forget what it was. Of course these might have been resolvable, but I didn't put too much effort into it. --001a1136b57461cbea0511b5eaad--