Re: RFC: Expectations
| From: | Joe Watkins | Date: | Mon, 21 Oct 2013 15:05:55 +0000 |
| Subject: | Re: RFC: Expectations | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69735@lists.php.net to get a copy of this message | ||
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