Re: [PHP-DEV] Operator overloading for userspace objects

This is only part of a thread. view whole thread
January 31, 2020 18:35 (Ben Ramsey)
> If we still want operator overloading and we want to force operator overloading to require immutability, I believe that means we would need an immutability RFC to be approved (and implemented?) before operator overloading requiring immutability could be approved. Something like this:
For reference, immutability has been proposed in the past, but I’m not sure where it landed. It looks like it fizzled out. * * * * * * I agree with you that I think we need to accept an immutability RFC before operator overloading (requiring immutability) can be approved. I also believe operator overloading should require immutability. Cheers, Ben