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