Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115871 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 60480 invoked from network); 26 Aug 2021 21:35:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Aug 2021 21:35:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BF3111804D8 for ; Thu, 26 Aug 2021 15:10:28 -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=-0.8 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 ; Thu, 26 Aug 2021 15:10:28 -0700 (PDT) Received: by mail-pl1-f169.google.com with SMTP id w6so2650212plg.9 for ; Thu, 26 Aug 2021 15:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:references:from:subject:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=IECyF84jVP4QSPc6Cr9MKIecviKpYfjIgFxUY7IJZ0E=; b=JemTLwm2RZCy6/PqgeAEiprkbg6zqeX3EBOQxOxqLqfBUrmrp4Lwh4QvkXajHCQvrQ rlm6oQ5VAIpwhbY51BZWMXXIm4FOQ4IuPWyoKVBXL7hlWC+NHgh/BFhuDq1htU9DCQPR QC1ffvuTptKaB4Cwoln2H31fhqwVUcrmIhcF610iMT7GtklXLND+KfavP4qfCTqa968z gkFo91oJpTOHilyfFjsZmBY56TZI6s3z8Js0cGIqhSwXKdltmm32UM+1nCob3Ukja/VK rONFjyc8G45Cqz2PGd3obNhQXbPfVYuOHjdijrbYAuePaDbuV5L5ZuoqSS2SdpYOQlPV dMtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IECyF84jVP4QSPc6Cr9MKIecviKpYfjIgFxUY7IJZ0E=; b=l+WXCdydNhsLMlYk/kuMr5ixP0G2qLqorlklOXqKJUrzq2n5jNO/pyH62AGW1bE4C3 AgSd3VnudoB0aKJ6WsPA6PCR56YZajD/uoEI8TnpZIg/n57oWIZ0fVu9WTi7uQJIoKul TjhZSeRccQX3vqYq68Oyu70HmoloFSe+uAQyhTG1ToLbN6KFhgNSK7ss9Vu6HfQF9lfh zfvsVWyq2AUEM0FZYh1NSoHy6iQprJgiGjOoiRCS/wjh/isQj7twj6P5h5MJcwrqw8LT z+EURy9JN4BEwAxvbBDjv5IXku4DLaK++KeQVmwWujeGIn8w7qEfr24dkeidUCxALkwz WoVA== X-Gm-Message-State: AOAM532twlimppoobW2Fgf6qvV53c53NxXN47EWZwVAGuKRqLec3jlnF oGXfGaZ6aS1vrJBQ09b/gjcQpfYDmbf1 X-Google-Smtp-Source: ABdhPJx/9IO2kjqfbPdBqnQl4TzRfQO2vDLHXB+vh652dkS4ztLSA5DWfUZY4w+X8ECZZF6EBdUc/A== X-Received: by 2002:a17:90b:1c83:: with SMTP id oo3mr6768599pjb.26.1630015823209; Thu, 26 Aug 2021 15:10:23 -0700 (PDT) Received: from ip-192-168-8-12.us-west-2.compute.internal (ec2-44-226-30-91.us-west-2.compute.amazonaws.com. [44.226.30.91]) by smtp.gmail.com with ESMTPSA id s200sm319217pfs.89.2021.08.26.15.10.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Aug 2021 15:10:22 -0700 (PDT) To: internals@lists.php.net References: Message-ID: Date: Thu, 26 Aug 2021 15:10:21 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] Deprecate dynamic properties From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > The crux of the issue is what our end goal is: > > 1. Require users to explicitly annotate classes that use dynamic > properties, but otherwise keep dynamic properties as a fully supported part > of the core language. > 2. Remove support for dynamic properties entirely. The core language only > has declared properties and __get/__set, and nothing else. stdClass is just > a very efficient implementation of __get/__set. I think goal (1) is reasonable for the long run, and goal (2) is taking it a bit too far for PHP. -- Stas Malyshev smalyshev@gmail.com