Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83299 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93700 invoked from network); 20 Feb 2015 14:02:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 14:02:33 -0000 Authentication-Results: pb1.pair.com header.from=cryptocompress@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cryptocompress@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: cryptocompress@googlemail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:60448] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/F5-54878-87E37E45 for ; Fri, 20 Feb 2015 09:02:33 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so3113679wiv.2 for ; Fri, 20 Feb 2015 06:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=9PdfvbMNkOQQiPksf7eoUatMzbE5ouHK9KYgptpeams=; b=RESdGik06DtTT5GpaF7QLSoz9GgNKLl/O9DoJVgqnBScNItM1/jjfB6/LZGjkjrhL5 C7FBGnr+PO6xX3MnILlcxM8uZE34Q3Qr3g1Ux9fpaf67JbebWReW82Opb8xvnCC+Bj1y Ln+OUhT2kmyuYXck2k/LnToGMXU/ma8q2xOUmGHU3h4s8wrTFi5roNuGESTfB2GiAVri Vpb55h218+AFaFFBBqlpbDACMEvm/SZkO/06tfUuLJg+yiXfauTbrQpGvr9/5T9F55FP 0xZlTIMgTzXERxEnDCluUnKY0C3Ku4QgB/hbSgMPezZxyWMJKS8nyVRgLyQwvvFKlJUO oVAA== X-Received: by 10.194.83.98 with SMTP id p2mr18674515wjy.125.1424440948262; Fri, 20 Feb 2015 06:02:28 -0800 (PST) Received: from [192.168.1.115] (mnch-5d858289.pool.mediaWays.net. [93.133.130.137]) by mx.google.com with ESMTPSA id n2sm2528615wiw.16.2015.02.20.06.02.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Feb 2015 06:02:26 -0800 (PST) Message-ID: <54E73E70.5020403@googlemail.com> Date: Fri, 20 Feb 2015 15:02:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: PHP Developers Mailing List References: <54E5F77D.9090406@fischer.name> <54E6F48A.9040906@fischer.name> <54E72FE7.9030803@googlemail.com> <54E7312D.9090404@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] Expectations From: cryptocompress@googlemail.com (Crypto Compress) > AssertionExceptions are not intended to be caught, they are intended > to be seen, in a specific environment. Joe, your argumentation is around how (not) to use exceptions. I can see your point and it's valid. My point is about not to implement exceptions at all. If exceptions are not intended to be caught, they don't need to be thrown (even if the context is different). If exceptions are not thrown and not caught, we can use "error" in dev and some easing severity (warning, zero cost nothing) in prod. Freely adapted from Murphy: If assertion exception can be catched, it will be even in production.