Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125565 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 563F11A00BD for ; Mon, 16 Sep 2024 13:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726493302; bh=zaPLiMktFx96zNVZCDvXG/ZDOGxUdEtFoTnglDXWAZk=; h=References:In-Reply-To:From:Date:Subject:To:From; b=K4JODDlAhGkZcawQ/hjMFhczbf7CfbQECSzcOlu9cqVYGlwWybSBtDwbE7lT8aTRb yHCcBXD1yWJEeDkwVm51oNWUUKLimHcjKsgkm4u1tkESoQ+f8m4UkDAzeSGd0qQaP+ N46HozxMXaQOG2dL7V7h/m1dr8nxYx/Ol7lhKtTI3MTk1ouIb8FpXsJAvoXkUXIWz5 XsHW7WS4ofCoEqZygUmS+lNKyZqZ0m5CGSz3QVqpi/JfizicBc0a0NbuGiXwVA3WBb yWUPj2zcCVdmHGc9bdjVRwrjkN8/54ARCdtf6y/OTxV+42r0VeYiuDW9GTi9fDJEZI AhTbHw4IgpFiA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C8221180061 for ; Mon, 16 Sep 2024 13:28:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: ** X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_50,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 16 Sep 2024 13:28:18 +0000 (UTC) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-e1a9dc3efc1so2981349276.2 for ; Mon, 16 Sep 2024 06:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726493173; x=1727097973; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zaPLiMktFx96zNVZCDvXG/ZDOGxUdEtFoTnglDXWAZk=; b=kDwzKw/ZNcITknOE+cnoxuAFDnyyVXzvFsHqFzqhG5DdbVzyAOfWm5Cb4i5XU39ByE Z6DYHC7LATLWv2HtIGkWYsY/ICx6WXmLL30rHl9f6s8BT8VRRho3NHD99nS14VKFXiir 34TaWjoVjrd92Ay3U6P7tcv3Ho5TWq/Y0ceg5qOlGnK0MtZ9ms6tA6IrGoXMZBk3K51t +b0+bi7xKWAr/1+9RUkCOHQMiLKhilgYaX+SyDuXoDi112M3MT56pyp9iPzkqzIm5xmv XUHCX19VvOFYHfdc/oLlUdmAZOdNBjLBTkk7axSJ3NQSNxo89d54EOBFoT8SB+kMjTvh 0skA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726493173; x=1727097973; h=content-transfer-encoding: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=zaPLiMktFx96zNVZCDvXG/ZDOGxUdEtFoTnglDXWAZk=; b=nzkWNPE2Dg+0DGz4Vb/AvCEiAIhkPvo+B1mOk93h9zKqN/flXtnrK/bG0Bxmw0SDNT mI2dsWh3o5tOXMX0yPfTMDnxbDAPpJYcMAzCNI+4jJVbeDIChTdKpJ3cznVjqGSBPmEq y4PSr+zphU0Ku71Iein/aKKze8U2jGuI2LBi2NC9hS/KwmJJShhf6HWivePjPob+WXPL XPtf8ZewWlh6/1W5xtr5l8cDc/6kbycrUfxw7wYtXq/SyBoJazlPMGoWE2aH4cPAa+ay MYDf+uCBJOaU1BorlogiEzRhJPcECAbn6QSHqdlMSW79rF6G3znt32aG6r7OeOotPSaN e2kg== X-Gm-Message-State: AOJu0Yz2314TjO5u8GBOcdrc/0YvyTqUbFIvjQrmzxrAlPskaT0XU2bG 7wJN1C5qNAhsLsDYYPgUxGWF4llPEtozTZYkfQSOj+FJbWE4P0haofd4mtWi789hU9C2aUuKgPw 41UcsvHR4Aa4EZi2973w919SiepwjW2IoSgKXeA== X-Google-Smtp-Source: AGHT+IHtU/XUNsiThMRnzUJKhhT1k34UikT/1BfrWRowwqGMfM6XpWz+Oac9H54qA3krl4wQSTVSviMWSkKR+N2A86U= X-Received: by 2002:a05:6902:e0f:b0:e1c:f15e:1f01 with SMTP id 3f1490d57ef6-e1daff92f8amr7849562276.26.1726493173017; Mon, 16 Sep 2024 06:26:13 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 16 Sep 2024 16:25:56 +0300 Message-ID: Subject: Re: [PHP-DEV] [Pre-RFC Discussion] User Defined Operator Overloads (again) To: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: someniatko@gmail.com (someniatko) > This discussion will use my previous RFC as the starting point for conver= sation: https://wiki.php.net/rfc/user_defined_operator_overloads > There has been discussion on list recently about revisiting the topic of = operator overloads after the previous effort which I proposed was declined.= There are a variety of reasons, I think, this is being discussed, both on = list and off list. On behalf of all struggling PHP developers who would like to implement patterns like Value Objects, with custom equality criterias; understanding that this is going to be read by quite an amount of people, I still would like to express my, and perhaps others', emotional state: Please make it happen guys =F0=9F=98=AD=F0=9F=99=8F!!111 I also agree that `=3D=3D` comparisons should be prioritized if only a subset of operators is to be implemented at once. The arithmetic is also useful for stuff like GMP, but the niche in PHP is smaller for that use case. Regards, Illia / someniatko