Idea: ifdef-like feature to ease userland BC
| From: | Marco Schuster | Date: | Sat, 08 Mar 2014 21:36:03 +0000 |
| Subject: | Idea: ifdef-like feature to ease userland BC | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-73008@lists.php.net to get a copy of this message | ||
Hi Internals,
especially with (radical) userland API changes coming up in PHP6,
might I suggest something like a ifdef feature which turns blocks of
code into comments?
This would allow framework authors to provide backwards compatibility
with "older" PHP versions while being able to take advantage of new
PHP features.
In theory, it could also be supplied as "update" to the already
existing minor versions (5.4,5.5 and 5.6) so that these versions can
also use the new code.