Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121412 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2388 invoked from network); 18 Oct 2023 17:13:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Oct 2023 17:13:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 21BB0180044 for ; Wed, 18 Oct 2023 10:13: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=-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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) (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:13:55 -0700 (PDT) Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-57be3d8e738so3990135eaf.1 for ; Wed, 18 Oct 2023 10:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697649235; x=1698254035; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8bWr6C6NofJYyzqV7K1pFBSdePvDumVy8bTgwjQNrL4=; b=K32VWIzjpu0Z+VcZFApdmlscnss7+zxjmSCIvBwY8KTt3nQoTquP41xHpIHUVqeoMN +SPd9mv2j4iXIOCyHoTZ0TsWu/dW4e/yJ28aMN1U/eKJn3VEvFr+jiWKHGKv4d04yYSt FJUst/Vnh6aZw8k9982YbG+07n7BiwpFE/bxZwjRX49eqqrU5MGCaNGroRa7l2HMi2+a 46rwWcLxiMtklrZYfQPLSzSDUkn/Y1W2ydrB7D448voUHq5TqqEr4PsZyQF6BLtzb1bf 6jrgSVonDCx0kto5Q7W9xlTd2OZ8mxMwHTnjuX62b9um/EW/HzqXUm9+BEVKqQRzkx+n FDZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697649235; x=1698254035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8bWr6C6NofJYyzqV7K1pFBSdePvDumVy8bTgwjQNrL4=; b=lu4t91Jj/syUnJFzNyboJH/5giReXszycqoPgDXmOOc10ezFTBynk9cq8lmBAeF4S3 iNhrwzdcgkBxR9wYcjG8hak2qlxhKRlciAImHuk24d2UCcbWyim2bY/BNuUp56eCVBw1 MtVRrk6nzhEmPJmfTACUcvTnaEddZBJzWHb5yWlXJmNS9cruIv1Kcvj/oWYDNLHPN60Y fyt8D1BDHfI1prB17OH9UPuAfJ7E6h8Vv/dBE293s513Vv/0o55NeJ1KYvFSrUfIKc8I /vL/GrugImh+GAKS+Q5yVKS2PkVyRxV8g95CMTmwEcG7F50+QJyLGgGJ6tEKG8SujBU4 5Kag== X-Gm-Message-State: AOJu0YyZrlQNlXMCr90eJfo/sPolWQdfov1MSuis9TZxIG3zYd1hIYYW qw8Al/PjIjldWodfbMoGEZ2L2qnZOgTwvh89bRYHMXFmq9g= X-Google-Smtp-Source: AGHT+IGHGp6FCdoeiKp0gihvYWMeI2NItsGplo8jh7HLTlYuqMnBt9Mh9T/EMv9w8jKlIqH1zHD5DBUZF1LwvMy2BTU= X-Received: by 2002:a05:6820:99a:b0:57b:dcc4:8f1 with SMTP id cg26-20020a056820099a00b0057bdcc408f1mr6227493oob.8.1697649234876; Wed, 18 Oct 2023 10:13:54 -0700 (PDT) MIME-Version: 1.0 References: <2A6BAAAE-384D-4D04-9BD2-057B2F329042@cschneid.com> In-Reply-To: <2A6BAAAE-384D-4D04-9BD2-057B2F329042@cschneid.com> Date: Wed, 18 Oct 2023 19:13:42 +0200 Message-ID: To: Christian Schneider Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Custom object equality From: landers.robert@gmail.com (Robert Landers) On Wed, Oct 18, 2023 at 7:05=E2=80=AFPM Christian Schneider wrote: > > Am 18.10.2023 um 18:42 schrieb Larry Garfield : > > So the real question is: Would anyone who voted No on operator overload= ing 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 prefixi= ng them with ~ feels like the worst of both worlds. > > Regards, > - Chris > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > I suspect xdebug would work fine if you can't use the IDE to ctrl-click on the operator. I highly suspect you'd never even use them except in specific cases where it would feel natural to do so (such as the money example, a units library, a matrix mathematics library, or a real number field library). Robert Landers Software Engineer Utrecht NL