Re: Optional catch binding

From: Date: Thu, 21 Feb 2019 16:57:26 +0000
Subject: Re: Optional catch binding
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-104492@lists.php.net to get a copy of this message
On Thu, 21 Feb 2019 at 15:46, Roland Franssen <franssen.roland@gmail.com> wrote: > For now, I'm aiming to get rid of "unused variable $e". You seem to be trying to alter the language to fit your code-style checker, rather than altering your code-style checker to fit the language. That seems back-to-front to me. Although there are times when having multiple ways of doing the same thing can be a benefit, each new way is a something else that has to be learned, so in my opinion they need more justification than this. > Example in the wild that could benefit from this: That code appears to be using exceptions for flow-control, which is often recommended to not do. Again, wanting to change the language to meet the needs of some code that is following a style that is discouraged doesn't seem the right way round to me. cheers Dan Ack

« previous php.internals (#104492) next »