Re: Design by Contract
| From: | Dmitry Stogov | Date: | Thu, 05 Feb 2015 13:48:42 +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-81926@lists.php.net to get a copy of this message | ||
php-ast is not almost the same, but it may be extended.
Thanks. Dmitry.
On Thu, Feb 5, 2015 at 4:34 PM, Alexander Lisachenko <
lisachenko.it@gmail.com> wrote:
>
> 2015-02-05 16:07 GMT+03:00 Dmitry Stogov <dmitry@zend.com>:
>
>> In general it's should be possible to provide PHP API to manipulate with
>> AST and write compiler extensions in PHP.
>> Looks promising.. :)
>> Anyway, If you are interested - start working on it.
>
>
>
> Actually, it's almost done by Nikita Popov:
> https://github.com/nikic/php-ast. Missing part is to put this
> extension
> into PHP core, create an interface for hooks and then give PHP hooks a
> control during parsing of source code.
>
> So maybe just make a vote to include this API into core? This will give a
> lot of food for thoughts and implementations of AOP, DbC, SQL-like native
> syntax and much more. From PHP Core developers it will be only the
> implementation, all other things can be easily extended by userland
> developers.
>