Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69735 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83088 invoked from network); 21 Oct 2013 15:06:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2013 15:06:00 -0000 X-Host-Fingerprint: 80.4.21.210 cpc22-asfd3-2-0-cust209.1-2.cable.virginmedia.com Received: from [80.4.21.210] ([80.4.21.210:24180] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/64-60242-7D245625 for ; Mon, 21 Oct 2013 11:05:59 -0400 To: internals@lists.php.net,Nicolas Grekas Message-ID: <526542D3.9070001@php.net> Date: Mon, 21 Oct 2013 16:05:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 References: <3D.BC.23638.84CA1625@pb1.pair.com> <5A140DF2-A29B-4804-A65C-37F6FB28D383@fastmail.fm> <52653B30.8050906@pthreads.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.4.21.210 Subject: Re: [PHP-DEV] RFC: Expectations From: krakjoe@php.net (Joe Watkins) On 10/21/2013 03:49 PM, Nicolas Grekas wrote: > Just an idea: rather than looking for a new keyword, would it be possible > to create a new syntax that uses assert in a non conflicting way for BC? > > Like : > > > T_ASSERT '?' expression ':' message ';' > > T_ASSERT ':' expression ';' > > > Or anything else with this characteristics. > Syntax isn't the only thing in conflict, I think that the syntax problem is not worth working around, because it would still leave unsolved the matter of incompatible API's and approaches to assertion/errors ... just provide a better solution and deprecate the old API at sometime in the future ... Cheers Joe