Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85282 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76413 invoked from network); 20 Mar 2015 12:37:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 12:37:13 -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.47 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.213.47 mail-yh0-f47.google.com Received: from [209.85.213.47] ([209.85.213.47:33926] helo=mail-yh0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/20-25408-9741C055 for ; Fri, 20 Mar 2015 07:37:13 -0500 Received: by yhch68 with SMTP id h68so39027409yhc.1 for ; Fri, 20 Mar 2015 05:37:10 -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=mkDWtJQ29aZmb85h8ciAXDtB+lmCjZZgldN7o+O53D4=; b=ia5bkzd3Tw/hQsI4W2QY9bpEHoSrZZAKGj1yoZA2ztVkIGkPVn/9CJRuGy5P2rS/aW K+mLMaTm3zGL/8q/F0u3XQhmLV09BOUPa6Llr2H61vLq6uwzOhKbBiMWC3ckgawlKyPL 0LjZ4sew/b8BaXHeZk09HyE2UJ70C02woKBEywxg/w/Z4j7ZQTZQd7I4s86g5A/GDdx8 dshgKb0R30y03cBl4VhSWXjoVKeYdBfJqzorogUEk6mUzlOUwHPh7eWfkbleiJIeo/xe 1107cUk8mInghV6f+YtPdDTsP9ID2NogonjHso2Tr2aCJFkS6KdoL7pHSLkUlmpJPPi3 S0og== MIME-Version: 1.0 X-Received: by 10.52.52.136 with SMTP id t8mr83812381vdo.49.1426855030558; Fri, 20 Mar 2015 05:37:10 -0700 (PDT) Received: by 10.52.177.7 with HTTP; Fri, 20 Mar 2015 05:37:10 -0700 (PDT) Received: by 10.52.177.7 with HTTP; Fri, 20 Mar 2015 05:37:10 -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> Date: Fri, 20 Mar 2015 12:37:10 +0000 Message-ID: To: Alex Bowers Cc: internals@lists.php.net, Rowan Collins Content-Type: multipart/alternative; boundary=089e0115f0483e17560511b7930c Subject: Re: [PHP-DEV] RFC - Array slice syntactic sugar From: leight@gmail.com (Leigh) --089e0115f0483e17560511b7930c Content-Type: text/plain; charset=UTF-8 On Mar 20, 2015 12:33 PM, "Alex Bowers" wrote: > > We also need to consider then the possibility of setting data by position. > > What should $array[@1:3] = [1,2,3] do? > > Should it overwrite the values there, and append any that don't exist, or > should it be a parse error? I'd say overwrite/replace the range with the new value. --089e0115f0483e17560511b7930c--