Re: RE: Announcing RFC 'Anonymous Catches'

From: Date: Tue, 25 Jun 2013 20:23:13 +0000
Subject: Re: RE: Announcing RFC 'Anonymous Catches'
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-67830@lists.php.net to get a copy of this message
On Tue, 2013-06-25 at 13:19 -0700, Stas Malyshev wrote: > Hi! > > > If I'm to understand this RFC correctly, it is nothing more than a > > random suggestion someone posed in the form of a tweet and the author is > > saying why not add it since it's not hard to implement. So in summation > > Well, here we go - this is why not add it, because it makes working with > such code harder without actually benefiting anybody. +1 Right now I set a breakpoint in my editor and look at an exception even if it is not used, in future I'd have to change the code for that. > > So this entire discussion can be summed up nicely with "Let's make the > > variable optional because... why not?". > > "Why not" is usually not a very good principle of language design, IMO. +100 johannes

« previous php.internals (#67830) next »