Re: Design by Contract

From: Date: Wed, 04 Mar 2015 08:35:00 +0000
Subject: Re: Design by Contract
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-84280@lists.php.net to get a copy of this message
On Tue, Mar 3, 2015 at 10:04 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > Hi Dmitry, > > On Mon, Mar 2, 2015 at 4:20 PM, Dmitry Stogov <dmitry@zend.com> wrote: > >> It may be to late for 7.0. >> > > I feel the same way. It may be better to try add it with 7.x. > > >> Also Alexander liked to to add another proposal, but I saw only >> pre-required one(s) >> Anyway, it's not a big problem to vote now. >> I may take care about implementation for >> https://wiki.php.net/rfc/dbc2 >> (but only if it wins). > > > Thank you. > The proposal would not break existing code as it does not reserve new > keywords. > We may try to add later on. Assert only DbC is messy and harder to > maintain, > but it's good start. > assert() is not for DbC. It''s useful by it's own. However, new zero-cost assert() implementation should be reused for true DbC. Thanks. Dmitry. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > >

« previous php.internals (#84280) next »