Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85300 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50570 invoked from network); 20 Mar 2015 16:00:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 16:00:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=bowersbros@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bowersbros@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: bowersbros@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:35364] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/2B-21731-9044C055 for ; Fri, 20 Mar 2015 11:00:10 -0500 Received: by wibdy8 with SMTP id dy8so20781661wib.0 for ; Fri, 20 Mar 2015 09:00:05 -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=K+GLTDZ4F9kvSVARi1PMSMA/3C8QMH1NPUy3o578X6c=; b=oZHF53Ktt76ygZTcVoCm6HPYsg37eP+pPXyvcBtrcUPK0YWP3c/quqqwTe68iO0+Nf OBi7DbHKcgKBeEcyYD+TkE1l5aeRU2Ux7Q3fdXQ8nhayo7Yp+NEZweEF3h7iQJdD5YJv +COA3ejWJMd2P0lDM4Go9jkQ9flh5UU74Rc+Oc498/yme1vGGh15yNDguce40bvnAP0d x9dzqutp+6HRbyW9bVxxI3NFqmMaHwjslktT2qP5obZ36y+9x5hDRTley8bCfYPsEgLa mXbjDfJPkDtv7K3hsvc2UngYGLSQNlv8g39N0Hlrhqpz8A40erjwDTPphJPtK+gSGt41 mPuQ== MIME-Version: 1.0 X-Received: by 10.180.211.144 with SMTP id nc16mr26388045wic.82.1426867205781; Fri, 20 Mar 2015 09:00:05 -0700 (PDT) Received: by 10.28.62.84 with HTTP; Fri, 20 Mar 2015 09:00:05 -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:00:05 +0000 Message-ID: To: Leigh Cc: internals@lists.php.net, Rowan Collins Content-Type: multipart/alternative; boundary=001a11c26890f142ed0511ba683e Subject: Re: [PHP-DEV] RFC - Array slice syntactic sugar From: bowersbros@gmail.com (Alex Bowers) --001a11c26890f142ed0511ba683e Content-Type: text/plain; charset=UTF-8 > > IMHO, stick to offsets in the first instance, this is a slice notation, > first order of business is to make it behave like array_slice (+on > strings). Assoc key based slicing feels pretty wrong to me at this point. I have to agree, we are getting ahead of ourselves. A quick summary of what this RFC should cover: - Slicing an array or string based on the positional index. Things for future RFC consideration: - Slicing an array or string based on the key. - Index -1 for last item of list. Everybody agree that the only focus of this RFC should be the positional index slicing? --001a11c26890f142ed0511ba683e--