Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82778 invoked from network); 19 Feb 2013 16:11:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 16:11:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.179 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.179 mail-ob0-f179.google.com Received: from [209.85.214.179] ([209.85.214.179:34957] helo=mail-ob0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/4C-17768-C14A3215 for ; Tue, 19 Feb 2013 11:11:08 -0500 Received: by mail-ob0-f179.google.com with SMTP id un3so6754785obb.38 for ; Tue, 19 Feb 2013 08:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=JywfNpnAYR2CEDLMA/5YSIMOnI8vu+E+sqBb1XxL/i4=; b=KVEVWZOw3OlkeS9ZHH7Y6ZIquxGTrQheb6JSBloett0ZfKuF8/qg9nuH7fDrwk8iHL 8tHwud717NfJ7RT3khkCR07V/MIzKQskmTDkXOsMnQCvR+08wduNRLXFWJXkk+CHFRZ9 m1CeILOxFGnOqBV4KH7uPVEV7Kpag65UDaJf3qfsIgq5Uv1ewZVBJLQgdGZbyzh8/gBk tqsCwLHxZdB0vrn6zDbP+fKyJrt7x8gPYqsSImEi7RkMtXqgSgSfLHs61ig76luLxF3M K74c/e5JIirgJxv7dGKxR+BZJtrWTs75+CFKr62+UpbNSUt+uh0zF5AaVwyJ/eRWOQIA YWVQ== MIME-Version: 1.0 X-Received: by 10.60.31.42 with SMTP id x10mr4111075oeh.18.1361290265858; Tue, 19 Feb 2013 08:11:05 -0800 (PST) Received: by 10.76.24.234 with HTTP; Tue, 19 Feb 2013 08:11:05 -0800 (PST) In-Reply-To: References: <8490FC41-2696-4948-83A1-3931674183B0@gmail.com> Date: Tue, 19 Feb 2013 09:11:05 -0700 Message-ID: To: Marcello Duarte Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Short syntax for anonymous functions From: morrison.levi@gmail.com (Levi Morrison) > 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;