Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115841 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43682 invoked from network); 25 Aug 2021 22:13:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Aug 2021 22:13:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BC9181804CF for ; Wed, 25 Aug 2021 15:47:23 -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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.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 15:47:20 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id a66so1300950qkc.1 for ; Wed, 25 Aug 2021 15:47:20 -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=VU7xgpZDwxVdLZjXyM8z7j7u5lSWln1MtYzNUhYzAMg=; b=Xd1q4pC0Prw9nF03TQQnF/ZhW/2rEJ0s9uM7urSIOXeB8fdbCKtMcvRkZ5t2L4Hq6B /oCjmJIF5+HkKdxTn2dxrjL4ySHxQwmVp4ah6gtjBT+7S7DEPXxoQYYMkZItlqhJ3pbw CgqZJLRoFojPYT189B0YGf8Qt267qy4LYPzPgbzohcDmyAqdkCDS0aCJU9ZmVuPdLHXj 1TyuBReKuSWcEoURvwR1SqVl1nzi6dMYCg4Lvz446C2coCD+1Hlt5CnPRB07y0hkLEDm mPxybqNSiFTLkC337O6ukRO80tvGpO2dcOR+vIF1LOFAUdGqWR2kSw9gd9G2xdw+pNBa hz+Q== 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=VU7xgpZDwxVdLZjXyM8z7j7u5lSWln1MtYzNUhYzAMg=; b=KKKU18uH8R+236V9vcrAAvMKoOv7/2eQNNZHquYoAE580BKesuRyWvz+f5dcgJ6YYR Z+0vCBUbd+3/5u2A/iub2YN6bjKlVLnshZY1kGYQiJj60O1VfgOfyamGg5KCL/xpFEN0 ZfEfnrGOBgYdC2Wzr9zBj2cVYyBmWas8BpN/TGaEreFIlYa+SqSzEUaKlw2NcjkORZFf bSKw/CLB6yA0xYkJAebbqwQsYp7L7A6fpCAk9aEXEdPqA5Pi1pnLWEo1X9DYGD27LQlQ g7GAaGImuvbFqI//muE1agi0nfBIOCmjCKnujAX0pDwQi2ME+DpLvAWyNcfPkKtCH+q1 tyfg== X-Gm-Message-State: AOAM530y1nnLuD2ko5u82hjtpbF2vhcUq1kO46uDvGy/dL67eNgVABBZ uYzsEVvnb/qkxTlfPOCkrwM/knK59/NmcigvQyRBjhc/4uk= X-Google-Smtp-Source: ABdhPJx7ssAVlid1Ms7KrEGMIpnoWEDKQPbdb1bKGN9m6kEOUlYstkhdoXohc9DdBTTvgQh0EIJ3tVpVxHJA8q1Jiz4= X-Received: by 2002:a05:620a:81c:: with SMTP id s28mr902841qks.45.1629931639937; Wed, 25 Aug 2021 15:47:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 26 Aug 2021 05:47:08 +0700 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Deprecate dynamic properties From: the.liquid.metal@gmail.com (Hendra Gunawan) Hi. A chunk in the RFC: abstract class Constraint { public $groups; public function __construct() { unset($this->groups); } public function __get($name) { // Will get called on first access, but once initialized. $this->groups = ...; } } Interesting! new to me. Maybe someday we will have this one: abstract class Constraint { public lazy $groups; public function __construct() { // no need to do this: // unset($this->groups); } public function __get($name) { // Will get called on first access, but once initialized. $this->groups = ...; } } Regards, Hendra Gunawan.