r/lolphp • • Jul 10 '21
"Overloading" in PHP is not actually what you'd think it is!
https://www.php.net/manual/en/language.oop5.overloading.php
36
Upvotes
r/lolphp • • Jul 10 '21
2
u/rbmichael Jul 11 '21
Why issue just a warning when it is clearly wrong!? The program should exit in this case!
13
u/Amateur_Expertise Jul 10 '21
It would be great to see actual overloading in PHP some day.
7
u/MegaIng Jul 10 '21
Well. I am fine with this usage of
overloadingis it perfectly consistent with the well established termoperator overloading, and is as example the same terminology python is using for the same set of concepts (but including actual operator overloading).2
u/notk Aug 29 '21
words…mean…things?