Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126334 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id BE1B11A00BC for ; Fri, 7 Feb 2025 15:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738940897; bh=ctfpDHXUTeeJuks+bzu/OsfyLlr6kWwRsDZDs4+QpNI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CJwlksba8NV6OHXusbpW2awZ/ZOI1nuAB7XG/bEQ7891v5AHgJpUmFOcPYyzBjuuV x+60mTD4DM7jRrgOcQbK1laRWn2GoMox7XgBhvNlITDXl6eNeKIbMr/US/+L/sjxTm KJ1hMv39Q/J/Es95VvVTN7Bd1wj2yhrewsR16TIL/N4FWWyKqQIPP6U3+MHIWIII6a 0BCrFM3H5IO/osGEU8Ro8xS2hxAEjUTGX8oA1PbRv/uPM+eYp+nvZ5xDLWBiAPYTfR CV/oy9w/aUGsAZULzN0CFcCzqassIFqotl8Sk1i6YwI4O9Pjhpga5/4i2QJ+HNM688 Vi04/5zyHXXLw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 10FBB180615 for ; Fri, 7 Feb 2025 15:08:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 7 Feb 2025 15:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1738941060; bh=+jQBGM2O3EfO/Cuo6gQzUleoUdZhnAzvea+Ib8ifexA=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=OD4ASatWXJ4Ad3ASzbbf18Jj8JCfGRv5QSmEXtzSDcDayc2Sph0REtd2oPXAQonIo sYekxEwu1kpJ9Ha6SaCQO48EIqj8u4xhlB0rGDJrKGCWYQ7SkaTbm+cIsBWcRE+l2o TT195SW6Skn54PBEBSYhcVXQxxKB50KyLAGbNKl4CUtyhSSG0r4XWbTq+AezCCZTQ7 2pyttd6wTII4Qoxsj5CBmKmtIx4B1V8WeNps7J70Oq8vhsOZAjCFbEwjJycW3ixnuu X8AtNwj+WvzXwOtEOAB48TSLtaf4eTCw+Hu72H4KRXytlyAiLd19hK01Rb0VGtqkVn Z8AV1uLoNiaJg== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 07 Feb 2025 16:11:00 +0100 To: Marc Bennewitz Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Enum + property hook getter In-Reply-To: <5c63909f-f25c-4bb8-b14d-bea420428a78@mabe.berlin> References: <5c63909f-f25c-4bb8-b14d-bea420428a78@mabe.berlin> Message-ID: <04144e8065a14f433f228776861edd0c@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) 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