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: OpenPGP_0x3936ABF753BC88CE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to