Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88030 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95921 invoked from network); 3 Sep 2015 10:47:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2015 10:47:56 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@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: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:34001] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/67-53181-A5528E55 for ; Thu, 03 Sep 2015 06:47:55 -0400 Received: by wicfx3 with SMTP id fx3so15354241wic.1 for ; Thu, 03 Sep 2015 03:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=ENFP0ywgRybRWxnSSvSkkU8QILZpJs9h2tZi1YJVgYA=; b=BYH8MAw9Y0dWVtob3HEE0pnTsywfYS+RwgAcbQ4zqlSInV0fBJWa4sHJHQgGG/mMXC RC2O6d7VymObRZwEldt5FkVtNjO2ZqYMGI1KCw+358v8wJW5KAVdtQbxuEDQIVezmdSm TfpTNCYGza7nDpMYDdfrZNnWzWPyvmLNWLVIQ/QS1aP/wrqIElT11oGMgL5FBAH/X3ye HSiehqCCxLi/yjXFgz3fdZKzFD1xlwvdB61eTuy53Z0Cq3rDyQOIXUwyTcIxF6RoI8FP ZDipSL2GqDzC5+m6M2NVC2FuPPIT+CwOfUvpLF0mM14hdJ36yy3fXEZQFr4t6xhLBSjS hi5w== X-Received: by 10.180.75.11 with SMTP id y11mr13557817wiv.46.1441277271832; Thu, 03 Sep 2015 03:47:51 -0700 (PDT) Received: from [192.168.0.152] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id i7sm8347495wib.15.2015.09.03.03.47.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2015 03:47:51 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <55E82531.7070500@gmail.com> Date: Thu, 3 Sep 2015 11:47:13 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Short Closures From: rowan.collins@gmail.com (Rowan Collins) Dan Cryer wrote on 03/09/2015 11:40: > Out of interest, is there a technical reason you couldn't use an existing > token, such as => for this? https://wiki.php.net/rfc/short_closures#symbol_choice In particular, note that this is already valid code: [$x => $x * 2] (A one-element array, specifying the key) But with the proposal, this would also be perfectly reasonable: [$x ~> $x * 2] (A one-element array containing a closure) So clearly they couldn't share the same syntax. Regards, -- Rowan Collins [IMSoP]