Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72089 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82982 invoked from network); 3 Feb 2014 17:18:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 17:18:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.53 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.53 mail-oa0-f53.google.com Received: from [209.85.219.53] ([209.85.219.53:57357] helo=mail-oa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/97-35654-C4FCFE25 for ; Mon, 03 Feb 2014 12:18:05 -0500 Received: by mail-oa0-f53.google.com with SMTP id m1so8277924oag.26 for ; Mon, 03 Feb 2014 09:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T6rla8lQsxfrhzqR8Obch1GgIkAB3BgmTed6ARKBuOs=; b=EPgoF9lBC8vRZ5Y4EAFiBd5nrs8qi9hH8/HhzOmea/WD6ekoE70j6T9d94g0YaTtVR HXC4v7jGiX4KTl9JE89euQ4ZajorP5ugtveii7a2VyXFthE+LZtnBzUxn27fB7rA8Swr IOYE6JfGOykNOjl/AqE3yuSRHHNeXB0mno6mtrByOie95x5lrFUVfYJBBjc3rh23yYE2 WPbXIaKzcxLJDLykqARttcF21LwqA0MDRD7I1S68UoFktMZD6h17iKukz+nsy/LBmpLb xA2joGAqHXH1lGUPHJeh01ARseJdvOUhghn+3UiBljETxX84M86KpHtERbsQiP4MX30w ijHQ== MIME-Version: 1.0 X-Received: by 10.60.69.138 with SMTP id e10mr1231570oeu.75.1391447881993; Mon, 03 Feb 2014 09:18:01 -0800 (PST) Received: by 10.76.77.8 with HTTP; Mon, 3 Feb 2014 09:18:01 -0800 (PST) In-Reply-To: References: <52EE2B1D.7000307@pthreads.org> <52EEA7BE.4050500@sugarcrm.com> <52EEF636.7010505@pthreads.org> <52EF5588.6010902@sugarcrm.com> Date: Mon, 3 Feb 2014 10:18:01 -0700 Message-ID: To: Pierre Joye Cc: Stas Malyshev , Joe Watkins , PHP internals Content-Type: multipart/alternative; boundary=001a11330780baf3cb04f183b459 Subject: Re: [PHP-DEV] RFC: expectations/assertions From: morrison.levi@gmail.com (Levi Morrison) --001a11330780baf3cb04f183b459 Content-Type: text/plain; charset=ISO-8859-1 I support the idea behind improving assert; I really should be able to say 'disable assertions' somehow and then assertions would have no impact at runtime. I have not reviewed the changes for the revised RFC at this time, but I wanted to voice my support for the general idea. Also: > assert never was a good thing to use This is just nonsense. Properly used asserts are fundamental in defensive programming and you can quite a bit of literature about it. Perhaps Pierre meant to say, "assert never was a good thing to use *in PHP*" and then I would agree with him because of the currently poor implementation, not because they are bad in principle. --001a11330780baf3cb04f183b459--