Re: Initializing constants once, with code?

From: Date: Mon, 06 Jan 2020 21:01:38 +0000
Subject: Re: Initializing constants once, with code?
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-108013@lists.php.net to get a copy of this message
> On Jan 6, 2020, at 5:56 AM, Robert Hickman <robehickman@gmail.com> wrote: > > 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. That would certainly be interesting. I do not know enough what is possible there to opine. It it were possible that might be the best of all worlds. Anyone with experience in that area able to comment? -Mike

« previous php.internals (#108013) next »