Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108338 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73421 invoked from network); 31 Jan 2020 20:23:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Jan 2020 20:23:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 645B31805E8 for ; Fri, 31 Jan 2020 10:35:10 -0800 (PST) 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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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-yw1-f51.google.com (mail-yw1-f51.google.com [209.85.161.51]) (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 ; Fri, 31 Jan 2020 10:35:08 -0800 (PST) Received: by mail-yw1-f51.google.com with SMTP id t141so5655938ywc.11 for ; Fri, 31 Jan 2020 10:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=1crcZNNcpo/w0RMIa0awFmapfbO70moIew7Eaps+/Xg=; b=ZUkgYocB+LxhlePVwDfKEb4jp+gNWEiWCoZvdSMkVYtLl+MzWbhuDQYt4434+Zr2+6 DIEWFD4++JtiQVJFvbO2JEEd+47hkgbm7jNzoAR2b1WKjvTyHjYeFzW3GjEjW0415V2P 5cD0zTr3jDpSvElrdeYxOpUNzm2i0MGwzlQL9E5kPNtLh0cE7eKsOcvvOOE6ibanb+Ja P6fgHOWSG6sSn7mQFbclo+dfySufQRcTm1jF769P2Rloshu9PKRFkY6UBjg7qIzMfGuj LQu1BUHKC5/KiRV72uypy7zYLqmVfVYBtGsB3AZ7U9MqbwsJl/w5PxyuiTQinJQv8MMp D9Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=1crcZNNcpo/w0RMIa0awFmapfbO70moIew7Eaps+/Xg=; b=mFJrcCn0BEkRIJnNI8Qq3v7SXQgtbjJZEFATk2rAC8XKMVGp/nMXatBKI33LcpVc0Y UsqdTBt/RnAAh5kGwkwqLyFAoDBZkE78pWI5Fth0hjUDJc4ua63T/j01a4zJe1sfYg2Z EiylFxIBrTOTxflnAppWzM9wBd9T6SOI9iGr3IntKvGXMJoJjiNfV4m2+yB/4riFbU6b Sk7yAiaNstYsEpk0UekIgxykbUD7GKThd2wbnGyPhjIFslq39skJm+qxbr9Fm6w2uNrB ypfm76lr11XIc/JEISFNYxJ78jMbcXTpbcCYSsGh1Ox2hXrQTRERpCAlmndHp6mWOG2P eK3w== X-Gm-Message-State: APjAAAUvpjXABxEihA/hXVSaWB1g4CKJiyLIGWejknXBP+sXLC9k4CKi CsOY/Gse8LWGr/CQP3wVZ9T4fg== X-Google-Smtp-Source: APXvYqzAYqaYYMromFOx8vmnShBEGp8aKMN0Eyrd2ccV263LgX4hnVBiY83Tu2yHPC2qZYTl1eUFvA== X-Received: by 2002:a25:42d6:: with SMTP id p205mr9567199yba.76.1580495706621; Fri, 31 Jan 2020 10:35:06 -0800 (PST) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id d137sm4364603ywd.86.2020.01.31.10.35.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jan 2020 10:35:05 -0800 (PST) Message-ID: <6EF45F94-CEAE-4FBC-A541-97ABE1341F14@benramsey.com> Content-Type: multipart/signed; boundary="Apple-Mail=_26CB6F05-7372-4AFD-9872-5BB6A7CA009D"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Fri, 31 Jan 2020 12:35:04 -0600 In-Reply-To: <58F2F26E-3082-4A32-828C-80491F9ED430@newclarity.net> Cc: Larry Garfield , php internals To: Mike Schinkel References: <00ea01d5d630$b18d4f20$14a7ed60$@gmx.de> <001f01d5d7b3$68c18b10$3a44a130$@gmx.de> <7c915ed1-adcb-473d-a975-acfdbf7b1e33@www.fastmail.com> <58F2F26E-3082-4A32-828C-80491F9ED430@newclarity.net> X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] Operator overloading for userspace objects From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_26CB6F05-7372-4AFD-9872-5BB6A7CA009D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > If we still want operator overloading and we want to force operator = overloading to require immutability, I believe that means we would need = an immutability RFC to be approved (and implemented?) before operator = overloading requiring immutability could be approved. Something like = this: For reference, immutability has been proposed in the past, but I=E2=80=99m= not sure where it landed. It looks like it fizzled out. * https://wiki.php.net/rfc/immutability * https://externals.io/message/94913 * https://externals.io/message/96919 * https://externals.io/message/97355 * https://externals.io/message/101890 * https://externals.io/message/81426 I agree with you that I think we need to accept an immutability RFC = before operator overloading (requiring immutability) can be approved. I also believe operator overloading should require immutability. Cheers, Ben --Apple-Mail=_26CB6F05-7372-4AFD-9872-5BB6A7CA009D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXjRzWAAKCRCwLZeYnIwH G4ELAP9N6up89qxt+Fl729rAIYGUbATJDNh/bc5f34ihEXxgjwD/S5pGSgMgmoqA tj1Zl05izW7tMqa61XsPY0251u7DBes= =H3Yq -----END PGP SIGNATURE----- --Apple-Mail=_26CB6F05-7372-4AFD-9872-5BB6A7CA009D--