Hi Francois, On Fri, Feb 6, 2015 at 6:55 PM, François Laupretre <franc...@tekwire.net> wrote:
> > De : yohg...@gmail.com [mailto:yohg...@gmail.com] De la part de Yasuo > Ohgaki > > Do you think of any negative impact on PHP if we implement D like > > in{}/out{} which allow any PHP syntax? > > Can you please give your opinion about the BC break a D-like syntax would > introduce ? It is important because, if the community accepts such a BC > break for PHP 7, I stop working on my proposal based on phpdoc comments. > IMO, it is essential to offer DbC option without making the 'DbC-enabled' > code unable to run on PHP 5, but that's just my opinion. 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? Regards, -- Yasuo Ohgaki yohg...@ohgaki.net