Re: [PHP-DEV] Re: Opinion on function/method name overloading

2016-06-06 Thread Lester Caine
On 06/06/16 13:10, Andrea Faulds wrote: > > However, we already have solutions for both of these in PHP. PHP's > functions and methods can have optional parameters for which you do not > have to provide an argument, and because PHP is dynamically-typed, a > parameter can accept an argument of any

[PHP-DEV] Re: Opinion on function/method name overloading

2016-06-06 Thread Christoph Becker
Dominic Grostate wrote: > As I understand it, using Java-like function overloading in PHP is > undesirable due to hindrance in readability. > > However I'd like to get an opinion on whether it would be received more > favourably if it could provide an actual performance enhancement over hand >

Re: [PHP-DEV] Re: Opinion on function/method name overloading

2016-06-06 Thread Dominic Grostate
Thanks. I only wanted some quick input into whether it was worth pursing before I do something daft.. like build it :) All I wanted to know was, if the technicalities could be worked out, and a performance boost was possible, would people still dislike it. I'd still like to see it added, but I

[PHP-DEV] Re: Opinion on function/method name overloading

2016-06-06 Thread Andrea Faulds
Hi, Others have already raised good technical points (performance, how to distinguish when we have dynamic/weak typing), but I'd like to offer another argument against it, that is, that even if it were possible we might not want overloading anyway. From my perspective, function and method