Article:
  What I Hate About Your Programming Language
Subject:   php is also missing function overloading
Date:   2003-05-14 07:27:13
From:   anonymous2
last time I checked, I couldn't do function overloading by param signature, which sucks major browneye. There was some wack way of naming the same function differently for each param permutation and using the main function as a traffic cop.


Granted, in Perl I just lazily shift off and do sanity testing in module, but when writing OO code I prefer to overload functions, particularly constructors.

Full Threads Newest First

Showing messages 1 through 2 of 2.

  • php is also missing function overloading
    2003-05-18 10:42:17  anonymous2 [View]

    See: http://www.php.net/func_get_args

    And: http://www.php.net/overload
    • php is also missing function overloading
      2007-12-11 09:19:44  mrprintedwall [View]

      I'm hoping that one day in PHP 6 or above would have typed variables, support function overloading also constructor overloading. although there is a work around to have overloading it seems not in the trend of Object Oriented programming. I've been using PHP for 3 years now and it's still bug me without the said capabilities. I'm using C# and JAVA so you know what I mean.


      I'm still supporting PHP because I believe for it power and speed. I'm just looking forward for more features of PHP.


      J.V. PILI

      Website Developer (http://www.softwaredevcom.com)