Re: RFC: Expectations

From: Date: Sat, 19 Oct 2013 07:41:42 +0000
Subject: Re: RFC: Expectations
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 10/19/2013 01:17 AM, Andrea Faulds wrote:
On 18/10/2013 22:46, Joe Watkins wrote:
Evening Chaps,
     Following on from discussion regarding assertion API in PHP, the
following RFC is now up for discussion:
     https://wiki.php.net/rfc/expectations
     Please do point out any missing sections or information, so that it
can be clarified as quickly as possible.
     I hope this conveys the idea a bit clearer to everyone ?
Cheers Joe
I like it, but I'd rather we just called them what they are and use AssertionException, because expect is really just a new assert statement, with a different name to avoid conflicting with assert() for backwards-compatibility :) Otherwise, I have no objections. Thanks.
I thought about it ... For the sake of making the concept as simple as possible to convey in documentation, it is probably better to have a uniform name: Expect throwing ExpectationException is intuitive to some degree, Expect throwing an AssertionException seems less so ... Cheers Joe

Thread (51 messages)

« previous php.internals (#69698) next »