Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85272 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55444 invoked from network); 20 Mar 2015 10:43:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 10:43:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.50 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.213.50 mail-yh0-f50.google.com Received: from [209.85.213.50] ([209.85.213.50:36237] helo=mail-yh0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/5C-25408-CC9FB055 for ; Fri, 20 Mar 2015 05:43:25 -0500 Received: by yhjf44 with SMTP id f44so37895399yhj.3 for ; Fri, 20 Mar 2015 03:43:21 -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=nuAjSnZz7NnzTLVQdBtRcQcj0fWfki/l1Cz67Lytt7E=; b=SJZeGAMq1vdDMd/AzLH+6lfkux/IyaYhy48feKhnxzqufrylBYndr5XFAiEpF2HWsN hHi1pjow8jeABm2n+iHHDU8sUNTuubdC6U/wulpmmNy2D/uWtWq0CnvXLaPPUXefh1tC KNID9UwfnIs7NEzb5wPv8EjHIPX6pStyer7kr4bXZfjJxRKNn1OToFXTnEeMR5dGCGSM qE/zeQDdRvHD2SXHsjQI5ML6wxqwAOrBB0+qoXrmkVLOiRqBXgRqSPI831hRjoAu2sKS 5mlifdXzTWnWZnBc4I+p6O56F8AlVBunPgchHor+2u4wGfIp6t9dmOsJnApT+7GtmgWz 0Jww== MIME-Version: 1.0 X-Received: by 10.52.165.65 with SMTP id yw1mr9627630vdb.51.1426848201530; Fri, 20 Mar 2015 03:43:21 -0700 (PDT) Received: by 10.52.177.7 with HTTP; Fri, 20 Mar 2015 03:43:21 -0700 (PDT) In-Reply-To: References: <550B39AA.2090706@garfieldtech.com> Date: Fri, 20 Mar 2015 10:43:21 +0000 Message-ID: To: Larry Garfield Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11c29cc03363b90511b5fcce Subject: Re: [PHP-DEV] RFC - Array slice syntactic sugar From: leight@gmail.com (Leigh) --001a11c29cc03363b90511b5fcce Content-Type: text/plain; charset=UTF-8 On 20 March 2015 at 10:38, Leigh wrote: > > 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. > That said, I'm a little older and wiser than I was then, I'd still be interested in looking at this. I'll try and come up with _something_ that works over the weekend. --001a11c29cc03363b90511b5fcce--