Re: Re: RFC Operator Overloading in Userspace
| From: | Stanislav Malyshev | Date: | Tue, 05 Jan 2016 17:29:11 +0000 |
| Subject: | Re: Re: RFC Operator Overloading in Userspace | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-90113@lists.php.net to get a copy of this message | ||
Hi!
> Interface is a good way to implement new functionality for classes, but
> operator overloading is language feature itself, so from my point of view,
> it will be better to put this functionality into the magic method.
No contradiction here. Language features can use interfaces, see
Throwable or ArrayAccess.
--
Stas Malyshev
smalyshev@gmail.com