Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121410 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 99351 invoked from network); 18 Oct 2023 17:04:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Oct 2023 17:04:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5D6751804BC for ; Wed, 18 Oct 2023 10:04:56 -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.5 required=5.0 tests=BAYES_05,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15623 212.45.192.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 18 Oct 2023 10:04:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id D2FCE3A0F61 for ; Wed, 18 Oct 2023 19:04:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at example.com Received: from mail.gna.ch ([127.0.0.1]) by localhost (darkcity.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e_IGKoz5Zu8E for ; Wed, 18 Oct 2023 19:04:53 +0200 (CEST) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2ea4:cf00:a4c7:7ea5:788b:4bdb]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 765A93A0DD2 for ; Wed, 18 Oct 2023 19:04:53 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.100.2.1.4\)) Date: Wed, 18 Oct 2023 19:04:53 +0200 References: To: php internals In-Reply-To: Message-ID: <2A6BAAAE-384D-4D04-9BD2-057B2F329042@cschneid.com> X-Mailer: Apple Mail (2.3774.100.2.1.4) Subject: Re: [PHP-DEV] Custom object equality From: cschneid@cschneid.com (Christian Schneider) Am 18.10.2023 um 18:42 schrieb Larry Garfield : > So the real question is: Would anyone who voted No on operator = overloading before vote Yes on it if it used ~=3D, ~>, ~+, etc. = instead? I confess that I'm not a fan of operator overloading for a language like = PHP but introducing new operators on top of making them overloadable = seems a bad idea. Operators have the problem of being hard to look up = and prefixing them with ~ feels like the worst of both worlds. Regards, - Chris