Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122166 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23207 invoked from network); 16 Jan 2024 21:40:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jan 2024 21:40:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1705441251; bh=PprND6SNsMu1hog+77ktzNex69jZVXghkN1HhLpfTmQ=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=fNbqiwwl9G3oEgO+tU2nXi0IHTKMaG49unHeBE/Ycmc1oEFSSbeD8GkNcwI5RKeYP l5Qszh3zzcrZ1fUd3+rx7jDUu72iC4+YbAsQNhXEW2pspOKv04pbOBiX04VV8p//wF FR8vhMOr74cJ8UiH0mMkD8V1hRJUOIlmebtW6GBN+pVPw1rJOsbAcMcRxMjfdMiEbf aoMbd/GiLDllzTxX5aE2DVm+5MrTrf7id475ePrUtCuKTCBFhaRToKzArmT++0R563 gRgobFyYLw7U60WNT0fXra86bNuXBKu6G0duq6INhiwzAilFH9m56o4WHrLKuI2Cw1 FZeEHBv4pE2Iw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D9208180056 for ; Tue, 16 Jan 2024 13:40:50 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 ; Tue, 16 Jan 2024 13:40:50 -0800 (PST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6d9bd8adb9aso1461571b3a.0 for ; Tue, 16 Jan 2024 13:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705441210; x=1706046010; darn=lists.php.net; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:user-agent:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=oVa32z3bNHKbEanF+pgtvfnOoiX2HxYi3kL/HxIFtPA=; b=f5ADFUWrH4i+JDFkJKMXQOaDq6o2amDJYA+aLvESiG8ihcWvbYvCDvfBPt3+xCb/ue YGjoHNFYyt5OPxCktKG/7uOKGmN5JWoWEZwDBrRcYnggj/YxF7ltOqGtU8seg6M/twwN jE2LHIdO38bSKcW0G2Z6wHB7u9JnNJHq3g8Kjp879Bhh8wUUjsbH2rod0CdOi/PRAH4c ROOmxUyd4BYEJtzZrEIytWsoYpLx+oR/1nXXkbZAbQXT9BEWdF6sqqTuZsL0V0kz0aSu 6JptF9FfqpDONXeoWbUXNHckT4eYtkPoQ37lJZVLzEt0i3SVysUTjlTOs8w3Caj+Cauv yeIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705441210; x=1706046010; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:user-agent:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oVa32z3bNHKbEanF+pgtvfnOoiX2HxYi3kL/HxIFtPA=; b=n4bBl716VL5aOyDUlXhMNBMLxNNNTcNQ9r6lX3bOrBHnd0IFpUtSnGsJnPVV+GluKq Ujom8aSyVScd2hGc1eRIN9o1CqtOBpjHgiFwMr7r5xHLrexP6beZzX2OHHBKLLg30tRe T2eyCPIDN4JvpWAvtnQJRFW7HGCSxG9rcxtxh8WP/Sfn/1iTtEIM37pBxLwvCXA4hNh1 yZMGOjQztwfKV+HX0essBvjbUIg7juCE/Wa43ubAw9omD711qdtgd8LEEW6ml5qOKAej N4dJavXczXkQf3ojdp9Dpd1xuwesAP/TKw4q1uteHzmJrwoTl7WOezKvrCwBHvD3IAt7 u/Yg== X-Gm-Message-State: AOJu0YyDZG2OBbUC2XLoxRFOTjXNXhhy8usWfZ4rAU9hqSR0HQ4X9ZZi Y/L1cs+jOurlfckpfNOSAp44/zTY8Xo= X-Google-Smtp-Source: AGHT+IFRALJ7yMb3eGDzpoD1m3tVlGWofwygZASzUAGuddqRX9NQP7mmAF1CF2LyL6oJZqKxBfXj3w== X-Received: by 2002:a05:6830:3155:b0:6dd:ebd7:d21b with SMTP id c21-20020a056830315500b006ddebd7d21bmr15104707ots.3.1705440880985; Tue, 16 Jan 2024 13:34:40 -0800 (PST) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id ie4-20020a05622a698400b00429943beea4sm5098207qtb.89.2024.01.16.13.34.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 13:34:40 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id E755927C005B; Tue, 16 Jan 2024 16:34:39 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute4.internal (MEProxy); Tue, 16 Jan 2024 16:34:39 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejfedgudehudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesrgdtreerreertdenucfhrhhomhepfdfp ihhkihhtrgcurfhophhovhdfuceonhhikhhithgrrdhpphhvsehgmhgrihhlrdgtohhmqe enucggtffrrghtthgvrhhnpeejgedthfelgeehvdevtdfggedtteehteeugefgkeegheef teevteduledvueegteenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghilhdomhgvshhmthhprghu thhhphgvrhhsohhnrghlihhthidqudefudefledukeehiedqvdehkedvgeehieekqdhnih hkihhtrgdrphhpvheppehgmhgrihhlrdgtohhmsehnphhophhovhdrtghomh X-ME-Proxy: Feedback-ID: id4a9467a:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A042131A0066; Tue, 16 Jan 2024 16:34:39 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1374-gc37f3abe3d-fm-20240102.001-gc37f3abe MIME-Version: 1.0 Message-ID: In-Reply-To: References: <1e22de79-1756-4eac-bdec-eefa0815db74@gmail.com> Date: Tue, 16 Jan 2024 22:34:19 +0100 To: "Nuno Maduro" , "Daniil Gentili" Cc: "Levi Morrison" Content-Type: multipart/alternative; boundary=5bbed74e6d9d4b58ae8a6dfeaf3ca657 Subject: Re: [PHP-DEV] [VOTE] [RFC] Final-by-default anonymous classes From: nikita.ppv@gmail.com ("Nikita Popov") --5bbed74e6d9d4b58ae8a6dfeaf3ca657 Content-Type: text/plain On Mon, Jan 15, 2024, at 13:54, Nuno Maduro wrote: > On Mon, 15 Jan 2024 at 10:36, Daniil Gentili > wrote: > > > Hi all, > > > > I've opened voting for the final-by-default anonymous classes RFC: > > https://wiki.php.net/rfc/final_by_default_anonymous_classes > > > > Regards, > > > > Daniil Gentili. > > > > Hi Daniil, > > Thank you for your work on this RFC. In my opinion, this RFC should not > move forward for consistency reasons. If regular class definitions are > non-final by default, anonymous classes should be non-final too. I don't think that consistency is a good argument here, because anonymous classes are qualitatively different in this regard. In order to extend a class you need to name it -- which *should* be impossible-by-design for an anonymous class. Unfortunately, due to an implementation oversight, this is not actually true. I consider the fact that extending anonymous classes is possible to be a bug, which is why I also accept the minor backwards compatibility break that comes with fixing it. Of course, the line between a bug and a feature is quite fine sometimes, so I understand that people have differing views on where this falls. Regards, Nikita --5bbed74e6d9d4b58ae8a6dfeaf3ca657--