Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85305 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58981 invoked from network); 20 Mar 2015 16:24:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 16:24:29 -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 74.125.82.173 as permitted sender) X-PHP-List-Original-Sender: bowersbros@gmail.com X-Host-Fingerprint: 74.125.82.173 mail-we0-f173.google.com Received: from [74.125.82.173] ([74.125.82.173:33566] helo=mail-we0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/FC-21731-CB94C055 for ; Fri, 20 Mar 2015 11:24:29 -0500 Received: by weop45 with SMTP id p45so86108967weo.0 for ; Fri, 20 Mar 2015 09:24:25 -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=2X2NqKpf8lE/ZRvfakPMvi9tw07ARQ/u31ojAaw6x24=; b=GJZRyAIa0Pycck5pWiotjVzEFzlSv3jNCWt8Azg1eTqnBmP5k385Dxv7d/TlSMNh8p i8C+FdAI02cbH47AO7aVIDDTBQzX9PXF3gZtKuZbx4eQ0I5rYzw/G0PNZmq21iVnpPl6 DHa71dwk9bqaZbVUTLQ/hTk7uZRCHVmr13J4qAcyfmz0utWME3QfPYiWgRaYE55Bjzg9 oMxo6wDoBJZNjzd0RCXjk/b4KMpEcEVxZs/LNJv+/YuR8ci9hL9e9hQJ6LDj4WZTgzz9 qhy3tCPc0jcVYWA6Qy6PvaIuTsPha0ai5oDa3jzLjM9ipHFx0QiB2LX2vD9UywjDuOG2 m12g== MIME-Version: 1.0 X-Received: by 10.180.38.1 with SMTP id c1mr6645892wik.84.1426868665064; Fri, 20 Mar 2015 09:24:25 -0700 (PDT) Received: by 10.28.62.84 with HTTP; Fri, 20 Mar 2015 09:24:24 -0700 (PDT) In-Reply-To: References: <550B5A81.1090706@gmail.com> <550B7189.4040608@gmail.com> <7486C296-7535-4633-AFE2-02E7BBC67BC5@gmail.com> <550C1176.9050307@gmail.com> <550C1AE4.8090607@gmail.com> <550C1EC3.8000106@gmail.com> <550C317E.8020508@gmail.com> Date: Fri, 20 Mar 2015 16:24:24 +0000 Message-ID: To: Leigh Cc: Rowan Collins , internals@lists.php.net Content-Type: multipart/alternative; boundary=e89a8f64334aec239c0511babf58 Subject: Re: [PHP-DEV] RFC - Array slice syntactic sugar From: bowersbros@gmail.com (Alex Bowers) --e89a8f64334aec239c0511babf58 Content-Type: text/plain; charset=UTF-8 On 20 March 2015 at 16:17, Leigh wrote: > $thing[-1:] is in scope for arrays though How would this work for slicing? Since doing [@-1:] would mean get the last element to the end. And doing [@1:-1] is the exact same as doing [@1:] since -1 and blank both mean the end. --e89a8f64334aec239c0511babf58--