On Sun, Apr 25, 2021 at 3:08 PM Max Semenik <maxsem.w...@gmail.com> wrote: > > On Sun, Apr 25, 2021 at 10:26 PM Larry Garfield <la...@garfieldtech.com> > wrote: > > > https://wiki.php.net/rfc/partial_function_application > > > Amazing, I've wanted this for so long! Have you considered extending this > syntax to OOP, e.g. $obj->method(?) or SomeClass::staticMethod(?)?
It works for methods as well, as stated in the proposal section. I think there aren't any examples in the RFC just because functions make for shorter examples ^_^ but we should add some to help make that clear. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php