Re: Simple variable handling.
| From: | Lester Caine | Date: | Fri, 12 Aug 2016 10:38:43 +0000 |
| Subject: | Re: Simple variable handling. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-95084@lists.php.net to get a copy of this message | ||
On 12/08/16 11:11, Yasuo Ohgaki wrote:
> 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.
I think my argument here would be that this is an alternate 'IDE'
approach? Rather than simply extending the 'simple' way PHP currently
works? As I say ... it's that your rfc on array validation has all the
code *I* think is needed to upgrade the handling of variables individually?
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk