Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115815 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86200 invoked from network); 25 Aug 2021 13:44:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Aug 2021 13:44:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 63E87180510 for ; Wed, 25 Aug 2021 07:18:46 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (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 ; Wed, 25 Aug 2021 07:18:46 -0700 (PDT) Received: by mail-yb1-f179.google.com with SMTP id z128so48213715ybc.10 for ; Wed, 25 Aug 2021 07:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qi/iSz9oTwzI/ZtL4PkfxVy1jQhPXM5HO0z0NkHdOS4=; b=NG4BJY6S0BFSLctHl5Rma37tWkOZFa4zCots/+BrJpWFiCHkiuayEay+ka8n3SWJAZ qypc9HuvrC97Y8eNb0TjEjKUP+NUnRGKlLkL8zLWSjSxwPwj1LHYcdSxWdI1SYnjbm2D xKqon5iRZcdgGxw3wYHF7P/Xs56CaJb69weZY= 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=qi/iSz9oTwzI/ZtL4PkfxVy1jQhPXM5HO0z0NkHdOS4=; b=SDJeIxhdxFM/1TL6eZQl4+aWBOqLzWr3SWN3UMOMieBQhYPIl1sKYqO3S660vqs+th J2fwm9vITmNPSnHOUSPp5NfUSeQOYZ5C5F7mVrWdE5zXpiENhIyH6cQzK59Obsb3Baif GZsWrdmDsFMmPA2ht+y0CXvoV4ZMuHrYvVpSmkiywNvvWrG2LwfJNQQMN1dhI6heYy6X KCdJzUeabvrSpZ0p45Xq0Nb0n1y8p/UG4TDFYTHNck+WMhIIiS13BTjebhyjE5qJ7AQE F7BEsIX0Csy4ojz5PNHAGsC9KwzxVCBbPhjuih0s+SoXMIxl9DVxUSfWHy3WAWXN+Sg7 3Wdg== X-Gm-Message-State: AOAM530Qh5a9thfuZ+N3DWxK1vpkM+HaG2eWKL5io9JLXKoBBBmBmh1E DUQnl4X+KXOcA6YI9OZmMraMmFBg2TZz/nd61SuWMw== X-Google-Smtp-Source: ABdhPJwlOAuPbeUI0RubaYZJZpuZK2rfM/fhBfpYbbtrtMB0wN/KL8Ecb3VPvhmom3Dg5M4i9ZeScSYNBO9tPQNSPHA= X-Received: by 2002:a25:ac0d:: with SMTP id w13mr26666651ybi.367.1629901125395; Wed, 25 Aug 2021 07:18:45 -0700 (PDT) MIME-Version: 1.0 References: <763725c0-870b-e8c4-054b-1ea0481ef877@gmail.com> <23055540-3829-6952-5c92-588eb90b699a@processus.org> In-Reply-To: <23055540-3829-6952-5c92-588eb90b699a@processus.org> Reply-To: Levi Morrison Date: Wed, 25 Aug 2021 08:18:34 -0600 Message-ID: To: Pierre Cc: Rowan Tommins , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Deprecate dynamic properties From: internals@lists.php.net ("Levi Morrison via internals") > And why not adding an extra keyword, such as: > > ``` > dynamic class Foo { } // Dynamic allowed > class Bar {} // Dynamic disallowed > ?> > ``` I am opposed. IMO it's not worth adding anything to the language to preserve this existing behavior other than allowing `__get`/`__set`, etc, which already exist for this purpose. Additionally, there are technical benefits to removing dynamic properties altogether, so I don't think we should "half" remove it. See https://wiki.php.net/rfc/deprecate_dynamic_properties#internal_impact.