Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99205 invoked from network); 3 Sep 2015 10:57:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2015 10:57:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:38647] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/28-53181-AA728E55 for ; Thu, 03 Sep 2015 06:57:47 -0400 Received: by wiclk2 with SMTP id lk2so3637559wic.1 for ; Thu, 03 Sep 2015 03:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=D33zgp5NZTqDNyNHKtlKT0AzJCxcMMI5MTOHRBOZEc8=; b=gIVadBEwF9R3Szhae55nOV5FDR7PnNdsAkyI3TD/lU2kw8/Kt2s+fjwR663GY3BMHK nKF1zI4mTsaJAmSA6jIwpelrdlZrbN8c/1WVPzmt73WKXNyXtSXfdxVW55nV5t5fGis0 eA+SPrsKESuC+slmVqehf5PWLUqK4dGKxTysmDivdUu+KT/n7zVefmfYVjGkmFpv22mw qd5qchCdU4JBZFacsBP4MP9wWuDopqVmn7+Lpa/VawPsQGjjas+a2dl8nwf+46Z2TSHb eufqD8Lmvrx3Sr3QKuluHpdqhXd5JeEiWRZS6LBUs9HSskTwb4zp+lwKoyUJ8qB7QUje JD4w== X-Received: by 10.194.203.3 with SMTP id km3mr47246594wjc.114.1441277863754; Thu, 03 Sep 2015 03:57:43 -0700 (PDT) Received: from [192.168.0.152] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id cw8sm37157679wjb.49.2015.09.03.03.57.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2015 03:57:43 -0700 (PDT) References: <55E77CA9.7050609@gmail.com> To: PHP internals Message-ID: <55E82781.6010403@gmail.com> Date: Thu, 3 Sep 2015 11:57:05 +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: 8bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Short Closures From: rowan.collins@gmail.com (Rowan Collins) Pavel KouĊ™il wrote on 03/09/2015 07:32: > I wouldn't mind the > mandatory ( ) around parameters, but at the same time I think that > it's an useless rule and makes the written code more "cluttered" (too > much ( and ) imho make the code less readable). Bear in mind that under the current proposal, the parentheses are only optional in the special case of a closure with exactly one parameter. Any time you want zero parameters, or more than one, you have to put them in anyway.