Hi!

On 11/15/16 8: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?

Please no. It wouldn't do well in PHP.

> To me, it saves me coming up with convoluted names for tackle various
> parameter combinations, even though the function/methods themselves all do

Don't come up with convoluted names, come up with names that describe
what the function actually does. If it's too convoluted, maybe it should
be refactored to simplify it. Naming functions doing different things by
the same name is a recipe for an unreadable and unmaintainable code.

-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to