Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114137 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 32449 invoked from network); 24 Apr 2021 19:48:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Apr 2021 19:48:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7E5581804C6 for ; Sat, 24 Apr 2021 12:52:04 -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,HTML_MESSAGE, 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-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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 12:52:04 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id l21so8900249iob.1 for ; Sat, 24 Apr 2021 12:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7mYp8nQ3kUupoW9WqeuzIdHmR4y7VDTqpkXXEaIEzxQ=; b=folPyo0blMq85EWpyrqsuWex9kRTJtS5cBh5PVrO+lw2HyPQfwqzPrdgp8ZALCxKTo g+b2/0PiXVCClpC+Af7ftOCaVR9YAYyvT1/a7Ximdcjpbyg3O1SKSV7oWuoSpPX2uD2v fPISsV0CpAgSQ9rvJ2ywqo4GXQRrQhuYLLY5ALllv/AswCblIlMD27iAouvxkfrK6hFd 5k81McDY3KLCwvjkjfj+kcc9ifLk+b07Z5t1Bujn8cZFMCHuqvw7mwfj0fl3ro2UhBEh dHSs7vDmcHfHtvS6sZQU7SmHqVyhSj9UfK9BZvzo5oCIM4oJ4JGy0uJQrTmHOR17t2OO JRYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7mYp8nQ3kUupoW9WqeuzIdHmR4y7VDTqpkXXEaIEzxQ=; b=uiF8TLohnuqdcXXxhvbCC2Xf6zw691vFDXkfZpupSMup0+Y66Wyu8/xRv865uN3VC2 wLu7uf7c89b2GgXQUp5++0QyOJeZrf/owWddPHZ5lLjd0vVJgiteVWKKHq5S7E7xau+L d289mTi4GUMUjLaHAdlsbfY9HRgy2ouUmaOySvzggZMVDDw8Wy6nO0BSHeTgbezGUmjh cQGFY7IBfOWwAv8fs/5jr+eEU/p9XM8W3niM6+BTKHT9Vx0JBz5T+sBhO+1P6uc4O6xg dyHQ5aGjz2WgubtX/sZxwNXwynPVWNOTtavfzIVDXYbM8tyPytTXDjl1WPBV0qUYY2HV WQOw== X-Gm-Message-State: AOAM530N5uJjNZ8I8hYxbANGJP45Bi6159ZU1Oe6A0Pp1VGEzAy+Nms3 lWIinA0NQd/3UTCDg60IgOvNP4GlOsCD37Efagw= X-Google-Smtp-Source: ABdhPJzGdSoWK17cAPOFW5n7/oTuZGWsmLJXHfq/KlStL+WUYOE/L860HxeOX9FQIsBlnCQwIk1bxFoaCm9Do4/Ye4U= X-Received: by 2002:a5e:8717:: with SMTP id y23mr7703396ioj.111.1619293922334; Sat, 24 Apr 2021 12:52:02 -0700 (PDT) MIME-Version: 1.0 References: <5b9f1500-615a-48f1-815f-1d48b327ef90@processus.org> <179049b1475.11134368b213512.254739612773841999@void.tn> In-Reply-To: Date: Sat, 24 Apr 2021 21:51:50 +0200 Message-ID: To: =?UTF-8?Q?Olle_H=C3=A4rstedt?= Cc: Saif Eddin Gmati , Pierre , Saif Eddin Gmati , PHP Internals Content-Type: multipart/alternative; boundary="00000000000007211305c0bd3f78" Subject: Re: [PHP-DEV] [RFC][Draft] Sealed Classes From: ocramius@gmail.com (Marco Pivetta) --00000000000007211305c0bd3f78 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Apr 24, 2021, 21:44 Olle H=C3=A4rstedt wro= te: > 2021-04-24 17:59 GMT+02:00, Saif Eddin Gmati : > >> Doesn't this violate the principle: It should be possible to add new > >> features without touching old code? > > > > This depends on which syntax is picked, both `for` and attribute syntax > will > > be completely BC. > > I'm not talking about BC, but the maintainability of the new feature > itself. For the shape example, you'd need to edit the original file > for each new shape you add, which is detrimental for maintainability > and scalability. So what's a good use-case? > The main use-case of sealed types is being able to declare total functions around them. --00000000000007211305c0bd3f78--