Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115978 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35535 invoked from network); 6 Sep 2021 21:05:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Sep 2021 21:05:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 61D25180511 for ; Mon, 6 Sep 2021 14:42:30 -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_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-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 ; Mon, 6 Sep 2021 14:42:29 -0700 (PDT) Received: by mail-wr1-f43.google.com with SMTP id u16so11521916wrn.5 for ; Mon, 06 Sep 2021 14:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=imcO6BpQd2mIto3rxosaD/8sWOkIjJ8aLBI2u6K5f/Q=; b=F6LcBcaRFEVxG2kNMw5yigM/my+vIecnTr1DLlsMzjUWChJGTvQiFcRURfl837U9Kf fdU6TnnCFMpquh9d9gjElyXZXv+qddLTU13SuumAjogM6qZgRSV1QniR5AdwBhiSwSDA /+82ScdioSszrabhukuczNo6IsTCLKJ28rcsGDA0gsovCmLNi3ndhgxMUKMBMs0/T4VF 7JG+Z4qNmfOKavlkg9K4rYJqYZLDhOzGizEEU8uEI1fcjJP5Z+QkTrukCELfk0tHDOJD rjAdjP7R8/Vak3MXd3cMoWkjH6vxcWJCWcIb3W540/qqMprOVo80EU+zb6iK8plJQlbJ tbCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=imcO6BpQd2mIto3rxosaD/8sWOkIjJ8aLBI2u6K5f/Q=; b=A9LjExa6x3Li9DFswshI0Fysyl1YoJ1ZWusa/m+VhCuKL/yQD/nHhi+CRXw39puNti JFMluOLoIAsA9GyDQbDIbA3S0FGTNt9LIVx1q3K1/kZlmDoeotVuBtqTB/NlOafEOo/e C43N2YzxXhvSxX9ZE+u8USsUf9NnKX0IpUl2KQZHP+j6i1YJvKLkPYnyylNKgwjuY1uG chd/49T6wFU8U5cYnSqTdP6T4d4p4ASznd7am6Mxrea6lv0c/WwZAx41b2ouyzvn03RJ 0pW163ZEqWw3sCgH/AyPbKQbnIiClurNJfmzEdyeDiWxCp0eAWUANn+PkXhOo9gkYouI P5tw== X-Gm-Message-State: AOAM5312Qb/MpqlNP7b4KxI8JAMvZWVRTHdJLcL5y2cV4pHYXAKevcuz 5+Uf2lwA8GHQZVZD0fMxzza7Sp8WBHg= X-Google-Smtp-Source: ABdhPJw7uatFeWESQAwM6QxFbIo8Cgrn9pYQvPuIqsMOkRLXnqyR0TZsxRPLZaJ//c9+Z6Zus3MKRQ== X-Received: by 2002:a5d:4e51:: with SMTP id r17mr15207275wrt.308.1630964544458; Mon, 06 Sep 2021 14:42:24 -0700 (PDT) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id k17sm928041wmj.0.2021.09.06.14.42.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Sep 2021 14:42:23 -0700 (PDT) To: PHP internals References: <672fd392-9be9-5a4a-41bf-97acce73de8f@telia.com> Message-ID: Date: Mon, 6 Sep 2021 22:42:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <672fd392-9be9-5a4a-41bf-97acce73de8f@telia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: Alias stdClass to DynamicObject? From: rowan.collins@gmail.com (Rowan Tommins) On 06/09/2021 18:36, Björn Larsson wrote: > In case of deprecation of stdClass I would like to point out that the > benefit of replacing "new stdClass" with "new DynamicObject" in our > existing code is absolutely zero. However, using DynamicObject in new > code has a benefit since the intent is clearer. Just to mildly challenge this: Why is the intent of old code any less important? Do you never hire junior developers, or those cross-training from other languages, who have to maintain that code? Do you never have days where your brain is just a bit fuzzy, and every extra meaning you have to think about is one less line of code you'll get written? But yes, for experienced PHP developers, the name is not that big a deal. Indeed, a lot of PHP developers probably never even see it. It's one of those little "paper cuts", where if we can make the fix not too painful (including deprecation messages not being too annoying), it will pay off in the long run. Regards, -- Rowan Tommins [IMSoP]