[PHP-DEV] Re: [RFC] [Discussion] Literal Scalar Types

[email protected] (Seifeddine Gmati) Thu, 23 Jul 2026 06:13:57 +0100
Newsgroups php.internals
Message-ID <CAFyg4Hi7Xw2i0u-FF1Oi-dozB34enJJg=X7662L=LaWB37-jWA@mail.gmail.com>
--00000000000069d23406574053bf
Content-Type: text/plain; charset="UTF-8"

Subject: Re: [RFC] Literal Scalar Types
On Mon, 15 Jun 2026 at 02:22, Seifeddine Gmati <[email protected]>
wrote:

> Hello Internals,
>
> I'd like to start the discussion on a new RFC adding literal scalar
> types to PHP.
>
> - RFC: https://wiki.php.net/rfc/literal_scalar_types
> - Implementation: https://github.com/php/php-src/pull/22314
>
> Thanks,
> Seifeddine.
>

Hi internals,

I have updated the Literal Scalar Types RFC to version 1.0, which I
consider the final revision: https://wiki.php.net/rfc/literal_scalar_types

The changes are editorial, based on feedback in this thread. I merged the
"Accepted literal syntax" section into the per-type sections so each
literal kind is described in one place, added a paragraph to the
introduction on where literal types fit next to enums, tightened the
reasoning in the matching semantics section, and added a short note on enum
comparisons to the Performance section. The proposal itself is unchanged:
the syntax, the semantics and the three votes are the same as in 0.3.

Since this is a minor revision, I am opening voting shortly. A separate
[VOTE] thread will follow.

Thanks to everyone who took part in the discussion.

Seifeddine

--00000000000069d23406574053bf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Subject: Re: [RFC] Literal Scalar Types<b=
r>On Mon, 15 Jun 2026 at 02:22, Seifeddine Gmati &lt;[email protected]=
re&gt; wrote:</div><div class=3D"gmail_quote gmail_quote_container"><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex">Hello Internals,<br>
<br>
I&#39;d like to start the discussion on a new RFC adding literal scalar<br>
types to PHP.<br>
<br>
- RFC: <a href=3D"https://wiki.php.net/rfc/literal_scalar_types" rel=3D"nor=
eferrer" target=3D"_blank">https://wiki.php.net/rfc/literal_scalar_types</a=
><br>
- Implementation: <a href=3D"https://github.com/php/php-src/pull/22314" rel=
=3D"noreferrer" target=3D"_blank">https://github.com/php/php-src/pull/22314=
</a><br>
<br>
Thanks,<br>
Seifeddine.<br></blockquote><div><br></div><div>Hi internals,<br><br>I have=
 updated the Literal Scalar Types RFC to=20
version 1.0, which I consider the final revision:=20
<a href=3D"https://wiki.php.net/rfc/literal_scalar_types">https://wiki.php.=
net/rfc/literal_scalar_types</a><br><br>The changes are=20
editorial, based on feedback in this thread. I merged the &quot;Accepted=20
literal syntax&quot; section into the per-type sections so each literal kin=
d=20
is described in one place, added a paragraph to the introduction on=20
where literal types fit next to enums, tightened the reasoning in the=20
matching semantics section, and added a short note on enum comparisons=20
to the Performance section. The proposal itself is unchanged: the=20
syntax, the semantics and the three votes are the same as in 0.3.<br><br>Si=
nce this is a minor revision, I am opening voting shortly. A separate [VOTE=
] thread will follow.<br><br>Thanks to everyone who took part in the discus=
sion.<br><br>Seifeddine=C2=A0</div></div></div>

--00000000000069d23406574053bf--