Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85274 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61327 invoked from network); 20 Mar 2015 11:40:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 11:40:21 -0000 Authentication-Results: pb1.pair.com header.from=bowersbros@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bowersbros@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: bowersbros@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:33105] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/3D-25408-4270C055 for ; Fri, 20 Mar 2015 06:40:21 -0500 Received: by wixw10 with SMTP id w10so25262162wix.0 for ; Fri, 20 Mar 2015 04:40:17 -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=Q4D+m2p3HCRWukqXUsmBPH1Hir5BboXE19J5ZDX6H/w=; b=T0xMNvOYasbX9uD91/YHpquql/RTkTOpThs1bB2M2RkzZL4+PonduNESPDBGpgiMAm QW5G3/U6lFY3YMiQHkLHmJKYeslV/Bvx37DIfBc++Zul9Rg9xk94b84OyoYqebm3wJDA Gbb5aFJsuloHb1ILcuQEnFzfA4Y1SSMNVluJAsMXp+UWNlM7il1nFd02JpYhKvsfcU4q U94ndebkz4mMpOUodym21SrwgrCoGxIVvY7GpSefYjPDQcTGDktWIi11N1c/K+PRbr39 jeZZHANL/IKrm1S8HEt+7sQQeyz5hzF3WlzBdHRBEgwsZVWuP7Ls/I53pYvgBx1E5v/g z9Iw== MIME-Version: 1.0 X-Received: by 10.180.214.99 with SMTP id nz3mr4756523wic.82.1426851617934; Fri, 20 Mar 2015 04:40:17 -0700 (PDT) Received: by 10.28.62.84 with HTTP; Fri, 20 Mar 2015 04:40:17 -0700 (PDT) In-Reply-To: References: <550B39AA.2090706@garfieldtech.com> Date: Fri, 20 Mar 2015 11:40:17 +0000 Message-ID: To: Leigh Cc: Larry Garfield , internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1135e9a8d5953c0511b6c7ba Subject: Re: [PHP-DEV] RFC - Array slice syntactic sugar From: bowersbros@gmail.com (Alex Bowers) --001a1135e9a8d5953c0511b6c7ba Content-Type: text/plain; charset=UTF-8 > > 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. If you've got a link to your messaging thread, I'd love to read it. Thanks 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. Could this not be mitigated by adding a new token like T_COLON to be used to match this use case? --001a1135e9a8d5953c0511b6c7ba--