Hi all, On Fri, Feb 6, 2015 at 12:00 AM, Pierre Joye <pierre....@gmail.com> wrote:
> On Feb 5, 2015 8:54 PM, "François Laupretre" <franc...@tekwire.net> wrote: > > > > De : Dmitry Stogov [mailto:dmi...@zend.com] > > > > > Yeah, this may work. > > > The only problem, that it looks not native and defines additional > language for constraints. > > > I don't talk it's wrong. Both approaches may make sense, but of > course, we have to select one. > > > > Yes, it makes phpdoc more tied to the engine but is it a problem ? > > And here I have to jump in and say: don't. > > And remind about one of the exact purposes of annotations. > We don't have to integrate DbC into phpdoc. phpdoc may have integration of new DbC syntax. I think it's helpful even if phpdoc copies post/pre condition as document. There are too many possibility for DbC syntax. We are better to choose something in common among languages. All of us understand why DbC is good for weakly typed PHP especially, don't we? Let's concentrate we have clean syntax for DbC. Dmitry's idea is good enough. IMHO. But if you have better one, it should be written on this thread now and discuss. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net