Re: [VOTE] User Defined Operator Overloads

From: Date: Wed, 05 Jan 2022 08:26:00 +0000
Subject: Re: [VOTE] User Defined Operator Overloads
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-116810@lists.php.net to get a copy of this message
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

« previous php.internals (#116810) next »