Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120132 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21999 invoked from network); 25 Apr 2023 23:14:05 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Apr 2023 23:14:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 43E1C1804F8 for ; Tue, 25 Apr 2023 16:14:03 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: *** X-Spam-Status: No, score=3.1 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_SOFTFAIL, STOX_BOUND_090909_B,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS36483 23.83.208.0/21 X-Spam-Virus: No X-Envelope-From: Received: from bee.birch.relay.mailchannels.net (bee.birch.relay.mailchannels.net [23.83.209.14]) (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 ; Tue, 25 Apr 2023 16:14:02 -0700 (PDT) X-Sender-Id: a2hosting|x-authuser|juliette@adviesenzo.nl Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E73688C2587 for ; Tue, 25 Apr 2023 23:13:59 +0000 (UTC) Received: from nl1-ss105.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id EA75D8C2656 for ; Tue, 25 Apr 2023 23:13:58 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1682464439; a=rsa-sha256; cv=none; b=oLWT7Z57NDvkp9wcxk5KN8ZONquIR/HQy5MO+gX7j75372hTYwQz0a/P+CBnNg/JPy545Z wgBaIMgjZWD0HP4aNnxdDqFzI/tdXB+ZCP/lP8X/8/KSyCayfKaDOgstQVQzBhqcRjelRF NuSA8GsnQPEuULufK8U3Cue8e5oR4LiZjKWig6zgmqr3//32OJe/+ZL2028uhz1/GcJU4x J1TeEk7RD5hpeM4RQ49N8LSdUJSrpWkEFhG1x7tPt+dIY45vbVyFPl+T4i2k3imF2DlLtt WgArSSgIhsuj1Ru+l/Bmk4EPWNITHClIXkH0WoV395LuehhVYS205YGrasfSBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1682464439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Bgex1qoGvrVZGDEukrlWEubHRlo+mMlFe8q6g4JeIsc=; b=NAyMf9pnnnEu2BnkcLflavKSAAmuSopc4xFfkjEppBGGrieaG3H+zupAE1n81W8qIjn2Wg RZ/W24niBP0HlIFbU+B5Z2zH4kTHAzrOMd17zboHtJaylLku41Au2LZFuKojLAzR+u11XX 0Wgb/c5L995KP188bb8wboe08CWXsiO94xY2NKyTigsDjGiKk15u8Dj5eonUM+/GIqC+hA aVuX0OYktbPicU+zzB30JML+cbbrenekKZ7u/+xG9SoyjbTF6gCHrueEORNq0Dz6K3/28+ XkVj7cUGMC0Cun5XFr4cbSF+1pXtAidqIiytL8E8zMrsZUfnRNsHbVVAH4z3Lg== ARC-Authentication-Results: i=1; rspamd-548d6c8f77-f58h8; auth=pass smtp.auth=a2hosting smtp.mailfrom=php-internals_nospam@adviesenzo.nl X-Sender-Id: a2hosting|x-authuser|juliette@adviesenzo.nl X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|juliette@adviesenzo.nl X-MailChannels-Auth-Id: a2hosting X-Snatch-Tank: 39f7a9c131d089f9_1682464439467_3399392614 X-MC-Loop-Signature: 1682464439466:2017705016 X-MC-Ingress-Time: 1682464439466 Received: from nl1-ss105.a2hosting.com (nl1-ss105.a2hosting.com [85.187.142.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.104.253.244 (trex/6.7.2); Tue, 25 Apr 2023 23:13:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=adviesenzo.nl; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Bgex1qoGvrVZGDEukrlWEubHRlo+mMlFe8q6g4JeIsc=; b=SJqkbAP2knYTs6SChNSVQoz84/ cwr9CcewV4yeduTe1KpzYQFyCVd0TiUfu0AeegqEUF/281fAs2Zetckvs+a8SER/rix5zVdBvKVN3 0fimv30z/Y6ISsQibUP4SVqkTXkuFWarxkARGBWIcQ99smmRdGv9KpkOGDwXa+njLG9Q=; Received: from [143.178.154.86] (port=64107 helo=[192.168.1.104]) by nl1-ss105.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1prRrC-004swH-0a for internals@lists.php.net; Wed, 26 Apr 2023 01:13:57 +0200 To: internals@lists.php.net References: <67b1e9b0-b7c6-71d4-cad2-2286edab759b@daniil.it> Message-ID: <64485EB4.5090901@adviesenzo.nl> Date: Wed, 26 Apr 2023 01:13:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <67b1e9b0-b7c6-71d4-cad2-2286edab759b@daniil.it> Content-Type: multipart/alternative; boundary="------------010903040008020800060502" X-AuthUser: juliette@adviesenzo.nl Subject: Re: [PHP-DEV] Final anonymous classes From: php-internals_nospam@adviesenzo.nl (Juliette Reinders Folmer) --------------010903040008020800060502 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 24-4-2023 12:28, Daniil Gentili wrote: > Hi all, > > I've submitted https://github.com/php/php-src/pull/11126 to add > support for final anonymous classes, though as noted by iluuu1994, it > would probably make more sense to just make all anonymous classes > final by default, what do you think? > > Daniil Gentili. > I always though anonymous class where `final` by nature. The fact that that hack to extend them works, seems iffy at best. For what it's worth, I'd be in favour of making the default behaviour for anonymous classes `final` without the need to add a `final` keyword. For those edge-cases which would be broken by that change, I wonder if support to opt-out could be added via an `#[AllowAliasing]` attribute ? --------------010903040008020800060502--