Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115965 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1479 invoked from network); 6 Sep 2021 14:51:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Sep 2021 14:51:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 085DA1804BE for ; Mon, 6 Sep 2021 08:28:53 -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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.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 ; Mon, 6 Sep 2021 08:28:52 -0700 (PDT) Received: by mail-ej1-f42.google.com with SMTP id u14so14137763ejf.13 for ; Mon, 06 Sep 2021 08:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=RZmY+8PP7/2Euk5ahdP2zp174fxcSSIHnFI3uXwiPlg=; b=TvMxC8Wc0dl4YNmyY9sgyXobKgL/rSsoDvu1DV5Q5mTLWRh9TBr8zF0aPLdVsLwuku WFS6VlXFPvir45ZTVh8bs9Ue5p3I+o1D+BTmjH+XpKVQuBWZ49gOqPfG9jmOzvJ8sqpH tW8AcdCxC8rs07Eb6S3PWEOHrN4qIXowphcBJHZBoxk3gxqDpGcuc65IIhCx/c5jLiMw s4P63flQ1JXTRqQciN261w58AvF4JsIiIt4DJkVuTMYh4dd+OBWZii8i2C/VIURGTwn4 T3FUhk6bFGcrz4aEZR10nAJfxT4riVti6Fk1oDlTkYWyuvpB1peub5baUlEMl1ru1ED5 kDIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RZmY+8PP7/2Euk5ahdP2zp174fxcSSIHnFI3uXwiPlg=; b=HQRn5PCfHahl6ie02Lszp0I+Vi8Wy9XNFpCWtBzc7aCjPnf4U0KXpXG9FJSkrU1UeG Tk5lDH8G+ItVFQ90ayn0CGlEFb/HxK8COmeixgr+N8l+vfBRmRFKyaQq+yvKY411vqnT N/qoJoDyGO6Rwx6OGfSfzfvpvjXHVWev+FWXgxDn1dhTC4+sH3JGStkf1GpABjCNZH5U nY+A3YVLw7g/fQ/3VwFVniU+afJeqZaNOAco7J5rN424zi8bt0fWVyFxrKHZEvaov5rA 9je437uWQoZQI81/LSukA/OsJKsjh4X8I6/bSfKCmzpKu3csZpuR8AS1Cpx9bGI6iyfW K0kg== X-Gm-Message-State: AOAM531T7a1c5NY5A8Q3Kn6CnAScouySEfxp4nmV9/hOMpg9w7x7d1zM aMrOl9oI7JCAhneq/S2DxIOguYc2XjKz4TPZJu18O8Ja7qk= X-Google-Smtp-Source: ABdhPJyxnycFwyLS+OaXOdwwC1bPLLChoN8tVarZcXu4frZR7FxTd38sUtN9HcHLi+fUl+K9CFMh23TK5YwkgN7QFwo= X-Received: by 2002:a17:907:50a1:: with SMTP id fv33mr14037367ejc.128.1630942129863; Mon, 06 Sep 2021 08:28:49 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 6 Sep 2021 17:28:34 +0200 Message-ID: To: PHP internals , Rowan Collins Content-Type: multipart/alternative; boundary="0000000000004cbd9c05cb554e24" Subject: Alias stdClass to DynamicObject? From: nikita.ppv@gmail.com (Nikita Popov) --0000000000004cbd9c05cb554e24 Content-Type: text/plain; charset="UTF-8" Hi internals, In the thread for deprecation of dynamic properties, Rowan suggested that we alias "stdClass" to "DynamicObject" in https://externals.io/message/115800#115802. I wanted to split this discussion off into a separate thread, as this can be decided independently. The rationale for this is that "stdClass" is something of a misnomer: The name makes it sound like this is a common base class, as used in a number of other languages. However, PHP does not have a common base class. The only way in which "stdClass" is "standard" is that it is the return type of casting an array to (object). The actual role of stdClass is to serve as a container for dynamic properties, thus the suggested DynamicObject name. What do people think about adding such an alias? Is this worthwhile? Regards, Nikita --0000000000004cbd9c05cb554e24--