Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116810 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 44697 invoked from network); 5 Jan 2022 07:18:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Jan 2022 07:18:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2DC2B180511 for ; Wed, 5 Jan 2022 00:26:07 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15576 212.103.64.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 5 Jan 2022 00:26:06 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 6A1B52160 for ; Wed, 5 Jan 2022 09:26:04 +0100 (CET) Authentication-Results: ext-mx-out001.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:date:date:message-id :subject:subject:from:from:references:received:received :received; s=dkim20160331; t=1641371163; x=1643185564; bh=BxQWqn FXNkHpxNajMylObeienwSx4DeRchMdwIfLjEI=; b=RTdv8SVA0q6BABlQoc4wic t7X4Qt54l19CVD6LRrhmolhEhFGxBMADoFYghX2v+23sCP7B9p+IRTGBsvvFz+yy FlK4hj2Ia4a+3IqLKYzQWNCfedQxcNBZdMirUgjeER1KF6So+9CJZKBclVVOYvkl Kmq8EzJymGzS/XxlNO2HgzOdBK2oaAnxXqZZqfUBYIAX3B10DAXjNOXA9RYf34MV T37Eub3fKsQcumJogBE54C9Yp7tAwrLSgSBGsnSuS8mZ3H4rD1dYY7mo4OEaAQ0M ZoxB4MxsJ76gp5ajB2n8cgI6f6VipdkUSr2U0izWsqbc114Cmo4Pqj1VXAHQgwvH Zu7RbB9VJAWZwuHxVRWZflK7Qsuh5CKoKdQDKi09ZWZTvkQvqJE3mgqkXw+KuSCL wqRMiBED0lhx8laPMIQFv7mhF8m5Cx2oJJ0RrSGsuECQtJNfR7rdma6Zy5C0bBjL UCF8vQPscHn6nYh5E8nsJhQNH9aU/AQn9TJH7pcMHLw5eo0zofOIjw5iUuWE0VdR LjwEZsRugb3T6Bq/04qsk3+43vIdxBBTabLxx1TdrcEKGOnZ/TEEKVxXt28CKJdz osDa0dUEkQXslZI41Hhes+MVgNNS0lx2HFFTjTLUka703nKtpisoFzl4FtOYTBDi riVoy7+hBX0xi5OpSyFPk= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vdm6H68-ftpE for ; Wed, 5 Jan 2022 09:26:03 +0100 (CET) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id 57C16215F for ; Wed, 5 Jan 2022 09:26:03 +0100 (CET) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 06BAF323 for ; Wed, 5 Jan 2022 09:26:02 +0100 (CET) To: internals@lists.php.net References: Message-ID: <81fe282c-45d6-f54a-16b9-9dfffedaaa33@alec.pl> Date: Wed, 5 Jan 2022 09:26:00 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [VOTE] User Defined Operator Overloads From: alec@alec.pl (Aleksander Machniak) On 03.01.2022 01:13, Jordan LeDoux wrote: > https://wiki.php.net/rfc/user_defined_operator_overloads. The voting will > close on 2022-01-17. - what is the performance impact? - why "[public] operator" and not "operator function"? - what about precedence, i.e. what happens with $a + $b * $c? there's no clear answer - why not allow the tilde operator to be used in a different context?, e.g. in PostgreSQL it is used as a regular expression match, e.g. $a ~ '^[a-z]+$' - the Implied Operators table does not mention ~= operation. - I don't like the Reflection API changes -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com