Re: [RFC] [VOTE] Short Closures

From: Date: Tue, 22 Sep 2015 08:42:21 +0000
Subject: Re: [RFC] [VOTE] Short Closures
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-88400@lists.php.net to get a copy of this message
Hi, The introduction claims: "he current implementation of anonymous functions in PHP is quite verbose compared to other languages. That makes using anonymous functions be more difficult than it could be, as there is both more to type, and more importantly the current implementation makes it hard to read (and so maintain) code that uses anonymous functions." I personally feel that the "verbosity" of the way PHP is doing closures at the moment is a good thing. It is much more readable and clear what is happening than with ~>. I further believe that the automatic binding of variables creates a lot *less* clear and maintainable code, easy to be misunderstood and prone for mistakes. Which to me means the Proposal is actually doing the opposite of what it claims to improve. hence, i voted against it. regards, Peter Petermann

« previous php.internals (#88400) next »