Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116657 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5204 invoked from network); 16 Dec 2021 17:28:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Dec 2021 17:28:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8F368180511 for ; Thu, 16 Dec 2021 10:30:55 -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=0.0 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) (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 ; Thu, 16 Dec 2021 10:30:55 -0800 (PST) Received: by mail-ua1-f53.google.com with SMTP id r15so48802592uao.3 for ; Thu, 16 Dec 2021 10:30:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lB4yqUuQm9TwD0g6b91QHLA+E3fV1muvs50FrXQhemw=; b=qs29c8Q4Mn5hKRtRXDVEliaGnXv9UHlFv+8EiJ+C2awpF1wkU29RxSEjxYjb8omR1h DnqHiD9MvOLmaYCq8MOwaZ6MeyRU9T5/tkgA/YYaJ8Qi0kqn6uU7q2wZNF6umPE9M2/K /N7afqNcq1AqCYGEl3j7qMbqxrsp2Ua1c3k96YYYObFtQQ30kasfPc4fUl8jkaMTfp7R Lgwg+Tw2D5rgkn4Dip8UGZUQVZ3M+i7dQZzGWM8ZFdd+i57XjCDtccAoi9RqDmqQTYoU XeoS6xdD+JmAhw7tE/kN+Ja4I0BfuzSM4cO6cYjTi7BEtEEgP4ltPHGvta21rFbRLfNy T0PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lB4yqUuQm9TwD0g6b91QHLA+E3fV1muvs50FrXQhemw=; b=kWVDO8GgCoJ9CCXir9iFN3mymAdWZMC61Y1ypWScM+rU9gN19ojuwap4iuosAvQujo kHPpskRpGt8Z14HkEdg3KDjo58ju40QEvxSScsp7HGtlL0mM+DlsZpPfCnMH2asmfJ07 +1Dp4wx7vGltax9QLJrN9YDXsXPNTRcBKSfkgIhMwIOhSckuqbIjOPR3eV8pGctNpPpO s8MNCYWz8UHl+pKr1dnsQhkjLJOeJWvzjXiMPuqY/qO+U72ZDTmOZ/Om9e9ajr7yox0i Do/o+5TVC7v+S192ksLB3RKOE8yB1yQYRgSUQ/e7+62HZZhqWvZVAN1Z1zyyuEeu9wbc zUXg== X-Gm-Message-State: AOAM5333JzL9nTlWdjU7NeFf0no107+opZ32+armGNTvI1KL0VOE4Xer j99+TH3fMproayPneODtVLlqBaEZyLzJUzSYGlHFQ/gyYDWIUg== X-Google-Smtp-Source: ABdhPJzR+BtegwVNoL70ZscAPDo1aYymlf9JUASuhGkg4idPwHAkmglqrGt0ghTFOVTuQhnGzsX++zQ+91xBhXBMjGc= X-Received: by 2002:a05:6102:2910:: with SMTP id cz16mr6275150vsb.9.1639679454312; Thu, 16 Dec 2021 10:30:54 -0800 (PST) MIME-Version: 1.0 References: <44b3fb4b-4693-1639-c8c0-5e17296c196e@gmail.com> <4b58c011-ed87-ba87-201d-0cf8e4116c6f@processus.org> In-Reply-To: <4b58c011-ed87-ba87-201d-0cf8e4116c6f@processus.org> Date: Thu, 16 Dec 2021 18:30:43 +0000 Message-ID: To: Pierre Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6) From: Danack@basereality.com (Dan Ackroyd) On Thu, 16 Dec 2021 at 08:24, Pierre wrote: > > > If the names are a problem, why not registering those using an attribute > ? If there is a strong reason to use attributes, then the argument should start from there. Starting from "well we could just use an attribute" and then putting the pressure on other people to find a reason to _not_ use an attribute, is a terrible design process. Every language that has annotations ends up with far too many of them; PHP is likely to end up with too many of them also. The time to push back against using them is now, not when the damage has been done. But to repeat, I don't think the names of magic methods are a problem. Documenting that 'the name refers to the operator sigil, not to what the function does', avoids it being a problem to be solved. cheers Dan Ack