Turns out this is a duplicate request. https://wiki.php.net/rfc/anonymous_catch https://externals.io/message/67786
I'm not sure how to move forward from here on. Feel free to take over the existing RFC and implement it :) (Im not a C developer). Roland, Op do 21 feb. 2019 om 19:56 schreef Gabriel O <gade...@gmail.com>: > How is it another way of doing same thing? It’s same way without > unnecessary stuff. It’s more intuitive, as it doesn’t make sense to force > user to specify variable they don’t need. When learning PHP, I remember > being surprised I’m forced to specify variable I am not going to use. > Plenty other languages like C#, C++, Python, Ruby already allow this. > > > On 21. Feb 2019, at 17:57, Dan Ackroyd <dan...@basereality.com> wrote: > > > > On Thu, 21 Feb 2019 at 15:46, Roland Franssen <franssen.rol...@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 > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >