Re: [RFC] is_literal

From: Date: Mon, 14 Jun 2021 13:30:19 +0000
Subject: Re: [RFC] is_literal
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-114862@lists.php.net to get a copy of this message
On Mon, 14 Jun 2021 at 13:30, Dan Ackroyd <Danack@basereality.com> wrote:

> [...] it will cause some fatal errors in production.
>


No, the only way fatal errors can occur is if you choose to make them fatal
(in userland code).

I have included examples of the literal_concat() and literal_implode()
functions in the RFC, showing how they can be implemented in userland
instead, as those functions can be useful for some projects.

However requiring developers to rewrite all of their code to use
literal_concat() and literal_implode(), with those functions triggering an
exception whenever anything goes wrong, that's going to make adoption very
difficult.

Craig


Thread (69 messages)

« previous php.internals (#114862) next »