On 16/02/2020 14:13, jan.h.boeh...@gmx.de wrote:
Except for simple numbers, almost no mathematical objects define division
(only some special matrices can be on the right hand of a division, and for
vectors there is no definition for division at all).
Then my philosophical question would be: ar
> ) I know you're not alone in that feeling. If it turns out this is the
majority view, I think it answers a couple of open questions:
>
> Overload methods should definitely be named after operations, not symbols,
to remind people they are implementing addition, not giving new meaning to +
>
> The
On Sat, 15 Feb 2020 at 23:06, wrote:
> Hi internals,
>
> based on the discussions here (https://externals.io/message/108300) and
> here
> (https://github.com/php/php-src/pull/5156), I have created a proper RFC
> for
> userspace operator overloading:
> https://wiki.php.net/rfc/userspace_operator_o
On 16 February 2020 05:07:03 GMT+00:00, Stanislav Malyshev
wrote:
>Hi!
>
>> - The individual symbolic operators, with no intrinsic meaning - e.g.
>> overloading . for concatenation on strings but dot-product for
>> vectors; or a DSL overloading << and >> for "into" and "out of".
>
>Please no. I k
Hi!
> - The individual symbolic operators, with no intrinsic meaning - e.g.
> overloading . for concatenation on strings but dot-product for
> vectors; or a DSL overloading << and >> for "into" and "out of".
Please no. I know it looks fancy and some languages love it, but for a
person not in on t
On 15 February 2020 22:05:52 GMT+00:00, jan.h.boeh...@gmx.de wrote:
>Some discussion points, I can think of, would be the naming of the
>methods
>(maybe naming them after the operator symbol and not the arithmetical
>operation they represent, e.g. __plus instead of __add) or putting the
>methods in
Hi internals,
based on the discussions here (https://externals.io/message/108300) and here
(https://github.com/php/php-src/pull/5156), I have created a proper RFC for
userspace operator overloading:
https://wiki.php.net/rfc/userspace_operator_overloading
The main differences to my original concep