Re: Design by Contract
| From: | Alexander Lisachenko | Date: | Thu, 05 Feb 2015 13:34:31 +0000 |
| Subject: | Re: Design by Contract | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81923@lists.php.net to get a copy of this message | ||
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.