Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125569 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 E997F1A00BD for ; Mon, 16 Sep 2024 17:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726509204; bh=JW2eOLjcuVKNCc3ILwRPf9uPIJyIEjgVPgFBMe4ig4Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eMyub41rWk/ZNL97dptpC0nzM2rPZiSIhyjOJKIrB8q9obHWtcE1ugbpH7N+dZd7h SAy1EL3wVtOh+4LS4fJz0wbZOkhamBybi2LguO4HS9s3Q9Db98Zy+FT3hMEh9xFwjn a28u+XiZgs5y4kyoXjYfMBfVmxCe55pz7x3oR40SgOpAxU75GYHHuFuqsp98vgPxo4 6YSDYr+Dfm0NnuBqsCSvHUJ8HAdB+BBvvCQtOK6TqIJA58ZbVN35u45oK51oAbDSqc aYd8cFWXoDuMrmsij2kuqDcYOBgZlhH1MT5tMWSnk94ugWiCK3xcQS2jN58TjpegJ4 5nx4ShKFMuS7Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 93729180053 for ; Mon, 16 Sep 2024 17:53:23 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 17:53:23 +0000 (UTC) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2d8b68bddeaso2909051a91.1 for ; Mon, 16 Sep 2024 10:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726509077; x=1727113877; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JW2eOLjcuVKNCc3ILwRPf9uPIJyIEjgVPgFBMe4ig4Y=; b=VSf1x/6SQHmGfNqrFHCM69BBDnhfSWG0OnHpxphTy3vjhkuunsfsV1mVpEbKnMkrF2 28cahRGBPA/x4KSDDVWLR2mQt+a6vW0dVFnUt2cs4GISZtZnXmtrUnFMhRcQt/Bi214T BiHF7cJtqn+Hb2TyAoxF0wYslsvBMeVfatWmCbPW3+40HdtBCa/B6oXSyPNCed4+VJLp BT9lkvHu4U/sBC+QLIPWxsrjafXpp7G4y5yToELhCsmQxX0xxsjdIzD9EjGwbxwAiV3K i1pjyM8PD1ghzcFjX1jo+OSaYbIv1uzInCM0XXETrvaZh6pyHSa+jUjwHFLp2vrwGY/1 ZMYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726509077; x=1727113877; h=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=JW2eOLjcuVKNCc3ILwRPf9uPIJyIEjgVPgFBMe4ig4Y=; b=XVyVJ3KmZWP1/w0cIi/hWpTMGwgL4fFWouEpSeLtbywQKzzl+NBHPeuQ9wREPs1YII cE6w8eCLj/kNTCiwPuxIK/6e+4+wI6DjaYR7qDxLLN+g47ALN4SHfGZBlXOudZzhE34m Zj8i4lmg6mfSqGptZVirUIqhVQvKfkmkcVVCVzcwK068l7Vxy7X9Nd5q5IQPCER3IJYm GbHHwv1aDvC9eax3lgzP5zYbSdZtRXVdmXgqzX3jKEUUiE25NPMjj1rPoYf5VoGJpj6L f50a+2S+nwPfya/2gdkQY+7H5MNneyNQuF54vP51rKN7XmggvamMFC0mvJHsKJVi1BD6 ku0Q== X-Forwarded-Encrypted: i=1; AJvYcCXnRLvrJgo/NLPjvGor3Mdq5GmFrGnkEue4vosqANEomQU7yxiyvcK5L7jvYxP+qnR9BAf7Uju0Tfc=@lists.php.net X-Gm-Message-State: AOJu0Yx7e6UORHsR7/AB9aVXwuXdej0q3qs0xinx3sypQ7NpgaWvPiuN ct5+9AiqkNWUz+JRNKlqmHpBb7pwlsfaC0RE5tqmiuup9Tm6tpVw1nfqws/0L6Ia9+CzGRs4YqQ e/9TZSVK+OF8jBZqL12eZ9n5PUJc= X-Google-Smtp-Source: AGHT+IF5+m6SBxadBUft9gUDylO70AlXQVgMYgBBfbfWN0M0v64PqYDJCVb3Z647Pl3DfjAFERx3qDJQi1KR4MosvPM= X-Received: by 2002:a17:90a:f492:b0:2d3:d7f4:8ace with SMTP id 98e67ed59e1d1-2dbb9dc9488mr16930904a91.8.1726509077068; Mon, 16 Sep 2024 10:51:17 -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 10:51:04 -0700 Message-ID: Subject: Re: [PHP-DEV] [Pre-RFC Discussion] User Defined Operator Overloads (again) To: Bilge Cc: someniatko , php internals Content-Type: multipart/alternative; boundary="0000000000003d82d40622403899" From: jordan.ledoux@gmail.com (Jordan LeDoux) --0000000000003d82d40622403899 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 16, 2024 at 6:52=E2=80=AFAM Bilge wrot= e: > > > On Mon, 16 Sept 2024, 15:28 someniatko, wrote: > >> On behalf of all struggling PHP developers who would like to implement >> patterns like Value Objects, with custom equality criterias >> > > I seriously doubt anyone is struggling without this, unless you care to > provide proof to the contrary. I think this is "nice to have" at best, an= d > in that regard, probably disproporional to the effort required to support > it. > > Cheers, > Bilge > Perhaps. I would like to point out that (somewhat to my surprise) the PHP reddit thread about my original RFC which was declined had about 2/3 community approval in the straw poll: https://www.reddit.com/poll/rv11fc I do not disagree that operator overloads as a feature is a specific tool for a specific problem, and people can ALWAYS make method calls instead of use operators. But it seems clear to me that there are a great many developers who feel the feature will help them write more understandable/maintainable/capable code. The people "struggling" without this are people trying to develop extremely technical and niche libraries (like myself). It is a "nice to have" for most people, but I do not believe that diminishes the number of developers I've talked with before and after my previous RFC who were wanting this feature. Jordan --0000000000003d82d40622403899 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Sep 16, 2024 at 6:52=E2=80=AF= AM Bilge <bilge@scriptfusion.c= om> wrote:


On Mon, 16 Sept 2024, 15:28 someniatko, <someniatko@gmail.com= > wrote:
On behalf of all struggling PHP developers who would like to implement
patterns like Value Objects, with custom equality criterias

I seriously doub= t anyone is struggling without this, unless you care to provide proof to th= e contrary. I think this is "nice to have" at best, and in that r= egard, probably disproporional to the effort required to support it.
<= div dir=3D"auto">
Cheers,
Bilge

Perhaps. I would like to= point out that (somewhat to my surprise) the PHP reddit thread about my or= iginal RFC which was declined had about 2/3 community approval in the straw= poll:


I do no= t disagree that operator overloads as a feature is a specific tool for a sp= ecific problem, and people can ALWAYS make method calls instead of use oper= ators. But it seems clear to me that there are a great many developers who = feel the feature will help them write more understandable/maintainable/capa= ble code. The people "struggling" without this are people trying = to develop extremely technical and niche libraries (like myself). It is a &= quot;nice to have" for most people, but I do not believe that diminish= es the number of developers I've talked with before and after my previo= us RFC who were wanting this feature.

Jordan
<= /div>
--0000000000003d82d40622403899--