Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84636 invoked from network); 3 Feb 2014 17:28:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 17:28:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qa0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:56788] helo=mail-qa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/F7-35654-BB1DFE25 for ; Mon, 03 Feb 2014 12:28:27 -0500 Received: by mail-qa0-f42.google.com with SMTP id k4so10549111qaq.15 for ; Mon, 03 Feb 2014 09:28:24 -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=j0p8old+gLrcnmAL6oYbP2O5rmYyx7VggZmRwmuGSEw=; b=WJhSNn8CGk7XWaVIRGNn+0tf7O1hs6NiuLwT/3eH2BuDqe3MfGRTHKlNG4LWFQpM+x gM6nlbw9PSs7Pp8pLYa1GH3ZDo85a2nGSM6CIC3KKvKOVN25X1QaS1QHwcXSrWQKe5r+ tewSYmWH/0kIPI7eQOkkqZ98LW4oXMfccjSU/re9a4nEfU1ty5x0vtZsCl4cmtgWECBZ +AclajWseVlp1FgVYm0leUx1ItGeTM9m4CCvUY/Dj3Qjrh0+A1j+vsLGdEIf7VVEfy80 eqVUH+vlDoGmXSlr5ahmswfw2XxTWClp1CButhWHW3kemCJ+31RmqnkMe+3HlKz84q68 TXww== MIME-Version: 1.0 X-Received: by 10.140.48.172 with SMTP id o41mr54924989qga.16.1391448504333; Mon, 03 Feb 2014 09:28:24 -0800 (PST) Received: by 10.140.18.129 with HTTP; Mon, 3 Feb 2014 09:28:24 -0800 (PST) Received: by 10.140.18.129 with HTTP; Mon, 3 Feb 2014 09:28:24 -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 18:28:24 +0100 Message-ID: To: Levi Morrison Cc: PHP internals , Joe Watkins , Stas Malyshev Content-Type: multipart/alternative; boundary=001a11353500d2fbe404f183d9a5 Subject: Re: [PHP-DEV] RFC: expectations/assertions From: pierre.php@gmail.com (Pierre Joye) --001a11353500d2fbe404f183d9a5 Content-Type: text/plain; charset=UTF-8 On Feb 3, 2014 6:18 PM, "Levi Morrison" wrote: > > 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*" Indeed in php, and I do not use it in c either btw. --001a11353500d2fbe404f183d9a5--