Re: RE: Announcing RFC 'Anonymous Catches'

From: Date: Wed, 26 Jun 2013 06:35:57 +0000
Subject: Re: RE: Announcing RFC 'Anonymous Catches'
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 25 June 2013 22:23, Johannes Schlüter <[email protected]> wrote:
> 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.

Hrm, this is a very good point!

>> > 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.


Nothing more to add.

--
Regards,
Mike


Thread (18 messages)

« previous php.internals (#67844) next »