Hi Fleshgrinder

On Fri, Apr 29, 2016 at 4:42 AM, Fleshgrinder <p...@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
yohg...@ohgaki.net

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to