Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33934 invoked from network); 3 Feb 2014 10:20:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 10:20:55 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:55838] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/73-18355-68D6FE25 for ; Mon, 03 Feb 2014 05:20:54 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id CC0DF10D5C2; Mon, 3 Feb 2014 10:20:50 +0000 (GMT) Date: Mon, 3 Feb 2014 10:20:50 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Joe Watkins cc: Stas Malyshev , PHP internals In-Reply-To: <52EEF636.7010505@pthreads.org> Message-ID: References: <52EE2B1D.7000307@pthreads.org> <52EEA7BE.4050500@sugarcrm.com> <52EEF636.7010505@pthreads.org> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] RFC: expectations/assertions From: derick@php.net (Derick Rethans) On Mon, 3 Feb 2014, Joe Watkins wrote: > While you can avoid some overhead in userland, you cannot remove the > overhead completely; a good assertion API should have no impact on > production, none, it should require no boilerplate code to make sane > use of it, at all, since it is meant to be a core feature. I think Stas' main objection was the inconsistencies that the "new assert" method introduces. And I have to agree with that there. It shouldn't depend on whether you use a string or not how the construct/function changes code execution and exception throwing. cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine