Re: Enum + property hook getter
| From: | Tim Düsterhus | Date: | Fri, 07 Feb 2025 15:11:00 +0000 |
| Subject: | Re: Enum + property hook getter | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126334@lists.php.net to get a copy of this message | ||
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). Best regards Tim Düsterhus