Re: [RFC] [Discussion] Literal Scalar Types

From: Date: Mon, 15 Jun 2026 04:53:03 +0000
Subject: Re: [RFC] [Discussion] Literal Scalar Types
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-131255@lists.php.net to get a copy of this message
On 6/14/26 20:22, Seifeddine Gmati 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.
I think I'm okay with this. David mentioned enums, and I do think enums are useful in many places where you want types like this, but there's a simplicity in this that I can't deny, and I like it. Cheers, Ben

« previous php.internals (#131255) next »