Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123429 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 2409E1A009C for ; Sat, 25 May 2024 09:09:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1716628202; bh=0t+Ef5+RQV7XOE+YZCVtiSYnrrUdXHjJFKeN3cmd9pU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=ST/b1w6SeHwtcjLcD61JsXphpVXRgVA7zU3koNUgIihUJVNTZ6C81rGcyL5x8PfJG IYWHq26oWTv0sEuwVzjbN8Yt8Gg5wuGS+K4ENpxzqhUQOZkvhQuYiwCWvNXXI8wmj9 3/Rnhq3DAGf+wWqJhk/VYPAQKPoUgSRk/icKOIbJ7F+wn8tW2YQbSzAiRVd6AIxDK+ eohHFkIhHNFf/li/5Q6EX7isw6LDdWBIgpb/jzIZFo8rqQ+MBl3M8et5jEqCGfCbr5 pdLrj4M5K4rb32T6JtmFKE9p+e+ud/a5T3h9B7Z2pThABNWe8KPIVvCrWSmmljSIJq CtBNFqJj5/P1A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3E54318056D for ; Sat, 25 May 2024 09:10:02 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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 chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 25 May 2024 09:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1716628142; bh=6qMFRKNB/YortdKN56V72dHxTaEaLh7oyK7oC9qi5bo=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=QBojw5HagJfgfjs5QgbjW7XaL+95+1B9OXAJEELnc+zpNTC/Nq4DZXATFJN1ISnMe dMpBPmTmpOQ37wxNlNh2V1g+5dJ64uRVkO6t/0COnDo36COXKjoIWRXsoTh3wg0zFs PJluhiSDPRkHj8bBAEvIzsFvUjXr423pNZRLwG1JMvZgUYHk312BEtrP7escmLr/QD Ef1zRYf5bNShOgqxgX5y92M6+W1ayran+N9yiCnMWxlK4o4zvV47cnwNiNHNbhrimJ huOWTm/21Mna8/1eGnzmkPwdT+9JoUBQaQ+apiHb5SH0frC1qjYyIx52yKZTbVN9ob QzwC447bO7S1g== Message-ID: <1fcd5502-f3db-40c1-97a8-f79154d7047a@bastelstu.be> Date: Sat, 25 May 2024 11:09:01 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 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-US In-Reply-To: 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 On 5/23/24 20:57, Bilge wrote: > 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? Generally not a fan of implicit. I like my code to be easy to read and reason about, not easy to write (and hard to read). Best regards Tim Düsterhus