Re: Design by Contract

From: Date: Fri, 06 Feb 2015 10:51:19 +0000
Subject: Re: Design by Contract
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-82038@lists.php.net to get a copy of this message
Hi Francois, On Fri, Feb 6, 2015 at 7:34 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > I can understand motivation to write script runs in older release. > It's nice, I agree. > > Personally, backward compatibility is not too important. > PHP5 is dead by PHP 7.2 release... This is the reason why. > It's only 3 years later, only 2 years later after PHP 7.0 release. > Therefore, I prefer PHP syntax based one. If it could be written as > normal PHP code, it would be great. > > I prefer my proposal of course. However, I don't care much about > where it should be written. I only care we have clean/fast/native/easy > DbC support in PHP 7. > > I thought you are going to write PHP syntax borrowed one. > For most users, PHP syntax is better. IMHO. > Since Dmitry offered something based on annotation, could > you work based on PHP syntax? and show us your concept on > this thread? > I believe native DbC support in PHP 7 attracts users including many new users. And I also believe D like syntax attracts more users. I think Facebook folks will like it. I heard they liked D. http://www.drdobbs.com/mobile/facebook-adopts-d-language/240162694 What I believe is not important to you. I could be wrong. I appreciate your proposal anyway. Even if my original thought is not accepted, I'm grateful to have it. What important is sort out ideas, make a consensus! Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#82038) next »