Re: Initializing constants once, with code?
| From: | Robert Hickman | Date: | Mon, 06 Jan 2020 10:56:58 +0000 |
| Subject: | Re: Initializing constants once, with code? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108005@lists.php.net to get a copy of this message | ||
Would it be worth expanding the ideas of programmatic constant
definition into a more general compile-time code execution approach?
It would work well with preloading introduced in 7.4, and could allow
some of the things frameworks are currently doing at runtime to be
done once at compile time (opcode generation time). The
work-in-progress language JAI has a very interesting compile time
execution system which could possibly be a source of inspiration.