Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99305 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68171 invoked from network); 31 May 2017 21:11:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2017 21:11:14 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.173 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.223.173 mail-io0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:34125] helo=mail-io0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/60-43873-F613F295 for ; Wed, 31 May 2017 17:11:12 -0400 Received: by mail-io0-f173.google.com with SMTP id k91so23731695ioi.1 for ; Wed, 31 May 2017 14:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=5V1q6fi7trA6OdT4eNcqQS2G5rI5lXHsef4BHG35JTU=; b=usu6gws26RNzeIIpp/q9zI+AmI0C8+CkjfHKggg9Vic9XpZijP0b8UH/H5OLQQc8Dt GhHKCKmdjimbJWQVyC98kHVwiZIuOPGNgVSt5ix0Bc4Nv+VbknlUxtdbZgHKDD1RwT5r TzjbXqmsENXZDMFcnegFYk89snpbaA2EH6xIPcDDjY/g5ikZ/LtCFisgiiknEkkHZlE2 u6E3hm8Rb3p8Z0LCvWXSq7zsGjoWhx8rhtowvQ/wKKAribuRf8FPut0SvSPE9dpY58aJ pwSqKWszO0JC5gFMMos/DgxZwEkyysCMk+KCFCxnwVUuYa66z97wEF0sjf85uTt5l5IS vyeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=5V1q6fi7trA6OdT4eNcqQS2G5rI5lXHsef4BHG35JTU=; b=KtkXP5xtyf32FezVic8OVweJhAWugcYeeGrrv6QY2kZMcHVmtZm1nWnyn9WAfeMyBQ jZtN2wdM96ZGIKWCnYFQF87V0LMMiAqxYl58GV7Z9YzNmBOKdX/x2+B7xkjn+2BBFgls aZnjb9LTEY1rsLUBcpwiIuddc/mWJTvGIAUr9qVbaLAAhk7L9DXcp52AgAIpsRqDzr4S HFDfj3LRYXwSRP0FkPsByny2v+fvSz9O0gQZAEBGsacW2AyR7HqPQgANJCkaJTHpJCQD NAcCnM8AlVITjWSbglckuAk8NAdcl/vWaKySFXBTrdUmhzdZpYGA6NLOGL1xl3qhNOjc qUhw== X-Gm-Message-State: AODbwcDFqOjDIF5dUFmhKC7wr4jXX3w6XOtMxskjTQTciFijYnJ6BdZ8 T9VTq+8o2+ssRmYEtlajYL/Vssh+IQ== X-Received: by 10.107.170.16 with SMTP id t16mr24176764ioe.113.1496265067933; Wed, 31 May 2017 14:11:07 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.107.12.159 with HTTP; Wed, 31 May 2017 14:11:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 31 May 2017 15:11:07 -0600 X-Google-Sender-Auth: 2nC9y36u_dULQD3jpfMLQ0pG3sI Message-ID: To: Ilija Tovilo Cc: internals , Rowan Collins Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions From: levim@php.net (Levi Morrison) > I can=E2=80=99t think of a scenario where capturing by reference would be= helpful in > a single line closure. function($item) use($array) { return $array[] =3D $item; } It's actually one of the first closures I discovered in the wild when looking for closures that would be candidates for the short form.