Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65944 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48153 invoked from network); 19 Feb 2013 13:28:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 13:28:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.181 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.214.181 mail-ob0-f181.google.com Received: from [209.85.214.181] ([209.85.214.181:41359] helo=mail-ob0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/85-17768-8ED73215 for ; Tue, 19 Feb 2013 08:28:09 -0500 Received: by mail-ob0-f181.google.com with SMTP id ni5so6462945obc.40 for ; Tue, 19 Feb 2013 05:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ROm77QPTnKWBp4aiU9fISt0cRPcmPBCqIZpQFVpL4uQ=; b=YVrL6kC0f0vu4ezVy5+oA3a2y0ADEO1iQ7SwDcrD1N+DmQYIaPZwl0mINFmLCQXI54 RxVwgliXdWWF7W/e0cJ6J0FmfhMbBFRyUjQCFUNL6owcQqd/0Ui8UcYkXNiwT4rpXeCr h2IqnVHNRrMBU/gG3Nop5WCAso/37KqSVs8qkXrK+7mKIqDM4zs1dZEJSviOW/0vI90Z bOjOPb3PVWDW9v02v/0AghskAPFkZ10kbFqybPAQ6d0jr6Ry6UkSE8lFnMFmXxP+93/4 axB3h8DxalAfrtu/97BVfjigTzI2qLbFn/mKkGlJzFRN8GMo3t5g/+L7xE6st8EfAvpm /dmQ== MIME-Version: 1.0 X-Received: by 10.60.28.228 with SMTP id e4mr7751517oeh.111.1361280485354; Tue, 19 Feb 2013 05:28:05 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.76.163.42 with HTTP; Tue, 19 Feb 2013 05:28:05 -0800 (PST) In-Reply-To: <8490FC41-2696-4948-83A1-3931674183B0@gmail.com> References: <8490FC41-2696-4948-83A1-3931674183B0@gmail.com> Date: Tue, 19 Feb 2013 14:28:05 +0100 X-Google-Sender-Auth: UOj0ujgpGr8POVIGNqDNcKPoWr0 Message-ID: To: Marcello Duarte Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Short syntax for anonymous functions From: patrickallaert@php.net (Patrick ALLAERT) 2013/2/19 Marcello Duarte : > Inspired by Sara, here is another RFC, I finally got around to draft: > > https://wiki.php.net/rfc/short-syntax-for-anonymous-function > > Please feedback, > -- > Marcello Duarte BC break detected: The {} would probably be a closure that is not assigned to anything while the current behaviour is to print "foo" and exit while returning "bar". -1 since it only saves 10 chars ("function()") without real added value.