Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64497 invoked from network); 26 Jun 2013 06:36:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2013 06:36:01 -0000 Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.215.47 mail-la0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:59968] helo=mail-la0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/80-60917-0DB8AC15 for ; Wed, 26 Jun 2013 02:36:01 -0400 Received: by mail-la0-f47.google.com with SMTP id fe20so12966177lab.6 for ; Tue, 25 Jun 2013 23:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xWyRQHeROXf+dwuejOQu4T+gJFQT99az4OoW48FEVW8=; b=dRAfv1ShUgEj3BU6VJGdYiqo0pTO4IoFt6EmkexphAdUVd/UHauIUa75g5qIR+eG/J 339XsG2sRHXrYCParKYAYy0LUDsI6YuLQNrO4oSPxOL6Bs2P2stRl0T5f19brZVwskJ3 j/ynCcaNeH0Hf1JhglbqjzIaQOfDJBc3dZCTY3eUPILjXnK6LlaimEJmJD91evh+uGzB qCYAAzbMKf+nC1nLt/Pe2XbsfL2sYwVTZeTbZRWcl6S992BVgmQrzZGJICSrfQVO4NSS iQvl87Kn6H/ohT36qXHurFHvvhcgxQr6aRIISyO8grn++BlzXzG73dgf5tnC8414JSTM vDMg== MIME-Version: 1.0 X-Received: by 10.112.76.106 with SMTP id j10mr1446951lbw.19.1372228558046; Tue, 25 Jun 2013 23:35:58 -0700 (PDT) Sender: mike.php.net@gmail.com Received: by 10.114.184.47 with HTTP; Tue, 25 Jun 2013 23:35:57 -0700 (PDT) In-Reply-To: <1372191793.2389.80.camel@guybrush> References: <4ED7146272E04A47B986ED49E771E347BB4DF6F235@Ikarus.ameusgmbh.intern> <51C9DED2.5080401@sugarcrm.com> <51C9F485.6050709@sugarcrm.com> <51C9FB61.3050903@sugarcrm.com> <1372191793.2389.80.camel@guybrush> Date: Wed, 26 Jun 2013 08:35:57 +0200 X-Google-Sender-Auth: SqCXZP1PgGkC7Y_wz7u5Vf83n-0 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: Stas Malyshev , Sherif Ramadan , Joost Koehoorn , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RE: Announcing RFC 'Anonymous Catches' From: mike@php.net (Michael Wallner) On 25 June 2013 22:23, Johannes Schl=C3=BCter wrot= e: > 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 summatio= n >> >> 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