On 11/15/2016 08:13 AM, Dominic Grostate wrote:
I think this may have been discussed before, but I was largely dismissed
because no one though it would be possible to implement.
However assuming it is possible, what is the general feeling towards
function overloading, as seen in C# and Java?
*snip*
I don't understand what problem it actually solves.
For me, my short term memory isn't very good and some text editors let
me type a function name and they show the arguments with symantic
arguments names and that is really beneficial becomes sometimes I forget
whether $needle comes before $haystack or vice versa.
Those hints are harder to do with function overloading because the
editor has to then also guess how the function is being used which the
editor can not easily do.
It just seems to make things more difficult without solving a problem.
To me anyway.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php