Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123423 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 427F91A009C for ; Thu, 23 May 2024 18:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1716490736; bh=vSphRas3tk+URoAMC2yMR7U+V+XF/xtVpPUv7BNodQ8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=WmfqObR+/jCpOqNMGLc1OEj9tMA0rU+T5Fmy2GGaOibyB9ch34xT31qj54vknpsH1 PM8rd0qJpu2Nfcs3ES44pppq5GrQuWcDMpYcRl9Hon3hzLsxnsbmIBCthGL5PoUbgO dPAU56y+GDBtZOQEv1XlHfW1ZLozUjYfKQAT0M3/x/E3SC2Hs5et2FZq4ILvyBhauL TXcHfW++sis+JujeHzsgBmeWvw3hTbSlfQgcEwozZrJrpZAFQ1khKkiKbMd+LDVprx we+jWeYdrFCcFSEEH4/2TYm+19R9os2waXVF9N4FEazxaV3vg+NvYXPXnb7awPNTbE OZblY4FDrRUmQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2812C1807FC for ; Thu, 23 May 2024 18:58:56 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 ; Thu, 23 May 2024 18:58:55 +0000 (UTC) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4200ee78f34so21986405e9.3 for ; Thu, 23 May 2024 11:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1716490677; x=1717095477; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=ChARUzJk2HXbo67cnqyaf3WTauE0mon/08DCpxWB8Us=; b=N7Of4H65chajAuRhVIHam0/flY7IqzeWulVMcGwJUh7pd3ZOI9BDxjLrXpPbcOge13 vmikldR3KbRd4DVu4GRsE3rWnAgfFe6Mx64/XUnF/qCeMeh9b7khCMWE/jJ10h7SZAZ+ EiefCdG6vPlsB28VZM+rtHdfINlce/MG8fSTYt9rw6VQQ5Fi4UZtxxKQx9Fg5wjhT+gu fgewE/fqb6CT4AZ52lM8aJibiUTzYdw9OiYycp0r/6K4guK4B181Hcw3AoZ+Lvz05/+Q aCaXD2zq25NLj3uvZOBEULsrWa2d9uXBzxQ/4H5JTGIap+Fc9GozCZB/OhMjToq0e+Ir hq4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716490677; x=1717095477; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ChARUzJk2HXbo67cnqyaf3WTauE0mon/08DCpxWB8Us=; b=KIrV8vlNIQf3sKTtftI//8Uo0cFGoQVgum1a+4bkj4HokJAgXY72MUX6hXCwy9EFfy ln0E0X8pI893IVylP7jESu9xNUhnYNeCVCkHa6FVzoBlEn9Tt7me/k3MDUG2Y6qOYuhP B23NGMSW7SEqAJQxVIpDYxSitGviSmSl6v+1mtHTnYm7tcm00dY/+cYw91nnO7hR8Mcw QUDNay16SwaN6+G1ZV91AzZv9090tkXBokgomz79igj7ra8fdwKi/hGCOh+tJo96a356 HmmOu8nu/ZKAdk7q3rKN/Z6BZKXGJGuYNrjEql7jY80GkbrLUmCrIswXR7DDYnzHG155 AOlg== X-Gm-Message-State: AOJu0Yz3PPlAw/hsLnCXUYrl3cUXK6RfEtbsSliPIuY4Ip/lEsIjSRNh pIET8bWpdPg26x+h4Oh9m0uDrZj1F4mpG7eecCasNiwmR7+VTqY9L2oYMRP6gx037yvb4ii6AXG 3 X-Google-Smtp-Source: AGHT+IEKSXeDaDlCYbfmmipOQ8GRMJ/5VAgVPx5Hzg6IJhntbhmbB2ySr0NQvBi3DgOpX9HyjTRA5w== X-Received: by 2002:a05:600c:2211:b0:420:1592:da3f with SMTP id 5b1f17b1804b1-420fd3136dcmr48716105e9.11.1716490677394; Thu, 23 May 2024 11:57:57 -0700 (PDT) Received: from ?IPV6:2a01:4b00:bf09:5101:517f:1d1a:4060:3784? ([2a01:4b00:bf09:5101:517f:1d1a:4060:3784]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42100fb9dcasm32300715e9.48.2024.05.23.11.57.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 May 2024 11:57:57 -0700 (PDT) Message-ID: Date: Thu, 23 May 2024 19:57:56 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [Discussion] Implicitly backed enums To: internals@lists.php.net References: <99c30f5d-e2f3-4027-a8fc-b3b9c71fb6d1@scriptfusion.com> <1286eed1-c35e-40ec-a6f0-84926c99c911@app.fastmail.com> <3cac0454-ceb2-449a-8b9a-1fac3f866a9c@scriptfusion.com> <8D146901-ADF1-4BAA-B6AA-2CCCFE7A0158@trowski.com> <0931b1f7-bd99-4468-b3b7-a4beca395368@bastelstu.be> Content-Language: en-GB In-Reply-To: <0931b1f7-bd99-4468-b3b7-a4beca395368@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: bilge@scriptfusion.com (Bilge) On 23/05/2024 19:48, Tim Düsterhus wrote: > As for the initial suggestion of implicitly backing enums: I'm > strongly against that. Personally I find that backed enums are almost > never useful. Fair enough; I think we've somewhat moved on from the initial suggestion of implicitly backed enums, towards implicit values for string enums (for those names without explicitly defined values). What is your opinion on this alternative approach? Cheers, Bilge