Re: Enum + property hook getter

From: Date: Sun, 09 Feb 2025 06:33:05 +0000
Subject: Re: Enum + property hook getter
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Tim,

Unintentionally, I first replied to Tim only but it was meant to be send to the list.

On 07.02.25 16:11, Tim Düsterhus wrote:
Hi Am 2025-02-07 16:03, schrieb Marc Bennewitz:
Is that something feasible and how complicated would that be to implement?
Supporting this might cause conflicts when full-blown tagged-unions are proposed, because those would actually support properties and semantics might need to be different than those a naive “rushed” implementation of property hooks for enums would propose. See https://wiki.php.net/rfc/tagged_unions for an very early draft (which is not in a shape to be discussed further).
I see - that would actually be a very nice feature - looking forward to it. First thought it might have been overlooked and just not included for simplicity, but yes, tagged union looks much more impressive. Thanks for your helpful explanation!
Best regards Tim Düsterhus
Best, Marc Bennewitz

Attachment: [application/pgp-keys] OpenPGP public key OpenPGP_0x3936ABF753BC88CE.asc
Attachment: [application/pgp-signature] OpenPGP digital signature OpenPGP_signature.asc

Thread (3 messages)

« previous php.internals (#126358) next »