Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114127 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5844 invoked from network); 24 Apr 2021 15:48:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Apr 2021 15:48:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 716091804DD for ; Sat, 24 Apr 2021 08:52:26 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 24 Apr 2021 08:52:25 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id m7so48178829ljp.10 for ; Sat, 24 Apr 2021 08:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Xwvwadljkua7fCPAR8M3IaKcuzx5Yf7ghMTzSY06XA4=; b=HDJxRnqG+MvjBZcd80g718MoUlsOp2XghRDwhTtF4xjMt2JaX2nE3VVt1MIBNyaiKv mNNLUatNYc/Ap2IMGHkmc7us5tYFY5leBbGB02zBF4WTWJb0S0SioI/68qwuwhooDcNg NSNID2Q12qlXZyyzxK9QlInrNxF8qmQa8xAvJwEd0qD8HfSeZ3H5Yas1c57W8ZuL0d3A U6uOROc7XahFJRoUR2y0x7S7pQNRHYVfad7lEXt8cIj00dVvJMN9fdqxwmZl1KDth9Zk lasnTekbNekIESvlqgzEQkk/KESd1dS/hxLBOoNYoa+7cqRRDeipnOtVkg3OvLPNdEbK ZJyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Xwvwadljkua7fCPAR8M3IaKcuzx5Yf7ghMTzSY06XA4=; b=tqhc+GSeHNoZdWlUET3OLCA2yiHiHhn9kgr8BpA5i/OCiL17QhHcyaZ+c+L9s54K6u M09XnjC7hZRnzM3iaVHhvF0QMha2w4OXQofOuMA6u1kM5lcE4Z3krKN8eDJppu2AczYv RuwSl+n3+YGBcoSPvFefuheLTQA1avOjTPU6uUpAnJxPn/uJF2BmFDDmLSyjtnGzAPJa RUNOub9rQ/XMbrp39I9lgvYiNydZDQ+DeVc+bxnbV1hIw39ZAD3/H0IBWpQjBgILKmNa dUpmSYoDpo3vg62vLuxJFzC6HWnEe7gsWNrPgxhyu4xmDLA4UmYPXmtgClyjGegVL+16 a1kg== X-Gm-Message-State: AOAM530jcK8LobwQ0ci8a6MgHjM09GiK3XAoVeMPI8z2eVfPEe2pwBGE aM1PZt0lZxhmYAggiE+w7Hg+6bpwcG9HVaM4Brw= X-Google-Smtp-Source: ABdhPJymFwN1Vnn7aJvjtxVw20AEo80CatmL9JQ6odZhN4eVAvhyQCdjkvw4AWNudXMFNbPQN0DjMtcyjIsJ9Dd+7HA= X-Received: by 2002:a2e:86d9:: with SMTP id n25mr6582645ljj.470.1619279541713; Sat, 24 Apr 2021 08:52:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:4e13:0:0:0:0:0 with HTTP; Sat, 24 Apr 2021 08:52:20 -0700 (PDT) In-Reply-To: <5b9f1500-615a-48f1-815f-1d48b327ef90@processus.org> References: <5b9f1500-615a-48f1-815f-1d48b327ef90@processus.org> Date: Sat, 24 Apr 2021 15:52:20 +0000 Message-ID: To: Pierre Cc: Saif Eddin Gmati , PHP Internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][Draft] Sealed Classes From: olleharstedt@gmail.com (=?UTF-8?Q?Olle_H=C3=A4rstedt?=) 2021-04-24 12:56 GMT, Pierre : > Le 24/04/2021 =C3=A0 12:55, Saif Eddin Gmati a =C3=A9crit : >> Hello Internals, >> >> I'm sending this email to open discussion about sealed classes, >> interfaces, and traits feature for PHP 8.1. >> >> I have create a Draft RFC here: >> https://wiki.php.net/rfc/sealed_classes >> >> >> A major concern for few people have been the syntax, in which it >> introduces 2 new keywords into the languages, therefor, i have added a >> section about alternative syntax which could be used to avoid this >> problem. >> >> Regards, >> >> Saif. 1) Doesn't this violate the principle: It should be possible to add new features without touching old code? 2) Isn't namespace-internal access a better feature for the same purpose? That is, only allows a class to be extended within the same namespace. Olle