Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90393 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9942 invoked from network); 8 Jan 2016 19:12:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2016 19:12:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.43 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.43 mail-wm0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:38134] helo=mail-wm0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/DA-55593-E0A00965 for ; Fri, 08 Jan 2016 14:12:14 -0500 Received: by mail-wm0-f43.google.com with SMTP id b14so185679715wmb.1 for ; Fri, 08 Jan 2016 11:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:to:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=zQeiBImR33sR260xcsadRyYDm2g23ofQfNINC6V2dVA=; b=LK+Bzv49L5LFv2hfiTBOu0vIt6hEOTQRrFieCcGDPcmh4onBqlUSQfZM+9SouaLZmF hRq+ps9PY0T1wYmu1gO6JC20gguaX1ZQh5A3tvLzqT3fZAipgFa3XCkdDO4vnYwmp4F1 T1rua4jOhcGAwFWLxfDxYtuWlCqJfYKrCmFq04VFTHBWAZ+GYrKlC9CtDErr4Irl1GlR 9DOdPzNUIOYhbn//jVBekW+B9j5TIzmJu7zxlBl5s8kClh/zdxIrTJgiJj+8BF1Y3gjP eJRMg2g2gGM8b7JhLL/s5z2fkoMcOWyJSesVImZ6IKVOnLmvpQdndZOTVcc3Fp/qcqdF T6ig== X-Received: by 10.28.12.9 with SMTP id 9mr532825wmm.76.1452280330678; Fri, 08 Jan 2016 11:12:10 -0800 (PST) Received: from [192.168.0.137] ([93.188.182.58]) by smtp.googlemail.com with ESMTPSA id pn6sm107344247wjb.15.2016.01.08.11.12.09 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jan 2016 11:12:10 -0800 (PST) References: <568FDA4B.60005@gmail.com> <568FFE13.2010304@gmail.com> To: "internals@lists.php.net" Message-ID: <5690099F.3050704@gmail.com> Date: Fri, 8 Jan 2016 19:10:23 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Deprecation of the Error Control Operator (@ symbol) From: rowan.collins@gmail.com (Rowan Collins) Dan Ackroyd wrote on 08/01/2016 18:36: > Apologies, it should be: > > $counts[$item] = ($counts[$item] ?? 0) + 1; > > Which both works, and to me, is more readable than the @ version As with the file-manipulation functions, I think you're focussing too much on the specific example and not on the general principle. If we go through every single Notice and Warning discussing its implications, when you might want to suppress it, when it should be considered fatal, etc, we'll be here forever. If there is even one Notice or Warning which is - subjectively - (a) useful, and (b) non-fatal if ignored, then "turn everything into an exception" is not a complete solution. Regards, -- Rowan Collins [IMSoP]