Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65964 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86501 invoked from network); 19 Feb 2013 16:29:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 16:29:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=i@morfi.ru; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=i@morfi.ru; sender-id=pass Received-SPF: pass (pb1.pair.com: domain morfi.ru designates 209.85.214.178 as permitted sender) X-PHP-List-Original-Sender: i@morfi.ru X-Host-Fingerprint: 209.85.214.178 mail-ob0-f178.google.com Received: from [209.85.214.178] ([209.85.214.178:64502] helo=mail-ob0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/0D-17768-668A3215 for ; Tue, 19 Feb 2013 11:29:27 -0500 Received: by mail-ob0-f178.google.com with SMTP id wd20so6845035obb.9 for ; Tue, 19 Feb 2013 08:29:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=morfi.ru; s=mail; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=jg6P4Qpz7Qv3uj61pNV493PK/tKpBf6ipT+GDxJC55A=; b=L/jD2LJ7ZOYxbCvY+lKGjCSTmelkAQXyv/nOETxTzWUcuYH3K8+Gp+mMp4aqhQKQUs 3cPxanyBlCDyWmP78ZJTGbphfflBIPcy33bK2+XaHoSqFtaZnazUQMVB3kdPK7jf1aMd tp2XSckKwKYIfahVjKHbM/6ue8BS/ubCOk3fo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=jg6P4Qpz7Qv3uj61pNV493PK/tKpBf6ipT+GDxJC55A=; b=UuTgjA8/CEeCpJStabShugdk4WhdAi6P+27APPXvzI/HDYvGqi4ER12K/vrOJn/05m FA4BW6fubLx7QXzZP3LvVBRO1kbEoYc3OKDyzzfnGavmEeLp7tRTBWNKE9hsXpMa6ER9 YLBDVwdsWawnndDHL4YAw3C4KyFOmn0MrSA5SbokGE9PaPOOwtuB8jWs1nWDqZhFUo1R T9HH282cjcGp6dTXgBuDCSfnvZOKOR2cNr9ieOdLO7wwoty2eD2OXRA2WATKwZF5NE+x HchCBq6idvNrd9xFELXacIls1YPu5fRvy7yesfl910roFuZLi6QyCl/+r1w8iwRMY6j5 i+9Q== X-Received: by 10.60.3.103 with SMTP id b7mr7762771oeb.86.1361291364593; Tue, 19 Feb 2013 08:29:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.81.35 with HTTP; Tue, 19 Feb 2013 08:29:04 -0800 (PST) In-Reply-To: References: <8490FC41-2696-4948-83A1-3931674183B0@gmail.com> Date: Tue, 19 Feb 2013 20:29:04 +0400 Message-ID: To: Levi Morrison Cc: Marcello Duarte , PHP Internals Content-Type: multipart/alternative; boundary=e89a8ff2514a38eefb04d61658f7 X-Gm-Message-State: ALoCoQlYIum31si+qaJZXe23FacQUIcsubYkfaXAYS6rko/qXIAKpp5aUwZQvX34hNVoHp0tkgoz Subject: Re: [PHP-DEV] [RFC] Short syntax for anonymous functions From: i@morfi.ru (Morfi) --e89a8ff2514a38eefb04d61658f7 Content-Type: text/plain; charset=ISO-8859-1 ($n) => { echo $n; } ($n) use ($m) => { echo $n; } On Tue, Feb 19, 2013 at 8:11 PM, Levi Morrison wrote: > > IF (and I stress if) we add a a shorter anonymous function syntax I'd > > like it to be geared towards one-liners because that's where the > > current syntax feels really verbose, especially when you close over > > other variables: > > > > function ($n) use ($m) { return $m * $n; } > > > > Versus one potential option: > > > > ($value) |$m| => $m * $n; > > My apologies, this was meant to read: > > ($n) |$m| => $m * $n; > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best regards, Andrey --e89a8ff2514a38eefb04d61658f7--