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
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
> ma
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 a
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 ov