Re: Simple variable handling.
| From: | Yasuo Ohgaki | Date: | Fri, 12 Aug 2016 10:11:11 +0000 |
| Subject: | Re: Simple variable handling. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-95080@lists.php.net to get a copy of this message | ||
Hi Lester,
On Fri, Aug 12, 2016 at 5:19 PM, Lester Caine <lester@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
yohgaki@ohgaki.net