Re: RE: Announcing RFC 'Anonymous Catches'
| From: | Stas Malyshev | Date: | Tue, 25 Jun 2013 18:17:54 +0000 |
| Subject: | Re: RE: Announcing RFC 'Anonymous Catches' | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67817@lists.php.net to get a copy of this message | ||
Hi!
> In such a case you do not need any
$evariable. Netbeans for
> example
> always highlight's these variables because it is not used anywhere.
> But I think it looks a bit cleaner if the variable could be omitted,
> if it's not needed ;-)
I don't think we need to change the language because Netbeans can't
figure out how catch blocks work. This change doesn't provide any
functionality that wasn't available before it, and does not make the
code clearer - on the contrary, IMO it makes debugging harder and people
reading the code more confused. In PHP, we always valued clarity over
brevity, and I think we should keep it this way.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227