Re: [RFC] [Discussion] Short Closures

From: Date: Thu, 03 Sep 2015 10:57:05 +0000
Subject: Re: [RFC] [Discussion] Short Closures
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-88032@lists.php.net to get a copy of this message
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.

« previous php.internals (#88032) next »