Hi Lester, On Fri, Aug 12, 2016 at 5:19 PM, Lester Caine <les...@lsces.co.uk> wrote: > I'm thinking > $var->setConstraint() > $var->setEscape() > $var->setReadOnly()
DbC cannot cover all, but some of them can be covered during development. https://wiki.php.net/rfc/introduce_design_by_contract https://wiki.php.net/rfc/dbc https://wiki.php.net/rfc/dbc2 Runtime constraint is good, but it could be too slow. Proper DbC would have nice balance on production and development checks. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php