Re: [RFC] Transform exit() from a language construct into a standard function
| From: | Derick Rethans | Date: | Thu, 09 May 2024 13:36:49 +0000 |
| Subject: | Re: [RFC] Transform exit() from a language construct into a standard function | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123283@lists.php.net to get a copy of this message | ||
On Thu, 9 May 2024, Flávio Heleno wrote:
> On Thu, May 9, 2024 at 7:51 AM Niels Dossche <dossche.niels@gmail.com>
> wrote:
>
> > On 08/05/2024 15:40, Gina P. Banyard wrote:
> > > Hello Internals,
> > >
> > > I would like to formally propose my idea for exit() as a function
> > > brought up to the list on 2024-02-24 [1] with the following RFC:
> > > https://wiki.php.net/rfc/exit-as-function
> > >
> > > There have been some slight tweaks to the implementation, namely
> > > that the transformation from a "constant" to a function is done at
> > > compile time and we do not hook into the behaviour of constants
> > > any longer.
> > >
> > > Let me know what you think.
> >
> > Thanks for proposing this, I'm in favor of this change because this
> > creates more consistency.
>
> Is there a list of other "functions" that are handled as "constants"?
I don't think there are any other "functions" like this.
That's why removing the special case for "exit" and "die" is a good
idea.
cheers,
Derick