Re: Fwd: [PHP-DEV] [RFC] PHP Attributes
| From: | Yasuo Ohgaki | Date: | Wed, 04 May 2016 07:23:29 +0000 |
| Subject: | Re: Fwd: [PHP-DEV] [RFC] PHP Attributes | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93062@lists.php.net to get a copy of this message | ||
Hi Fleshgrinder
On Fri, Apr 29, 2016 at 4:42 AM, Fleshgrinder <php@fleshgrinder.com> wrote:
> Is there a reason why you think that Design by Contract (DbC) should be
> implemented via annotations/attributes?
It's not complement of DbC, although it could be used.
Basic DbC idea is "Do validations always and fully during development
but disable almost all validations for production".
There are separated RFC for DbC
https://wiki.php.net/rfc/introduce_design_by_contract
https://wiki.php.net/rfc/dbc
https://wiki.php.net/rfc/dbc2
I like you version of syntax, but above syntax is the result of DbC
discussion so far.
I would like to reactivate DbC discussion soon...
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net