On 22 Nov 2010, at 14:58, Tjerk Meesters wrote:
> My bad, I did read from the beginning but I think certain parts ended in a 
> void ;)
> Still, in my opinion any function that takes name/value pairs is a candidate 
> for array overloading. I sometimes wished php would do java'ish method 
> overloading ... is there another reason beyond the one-up complexity to pick 
> another name?

Error detection. New method could be setVariables(array $foo), and would 
complain when you fail to pass an array. Similarly, set() with two arguments 
requires both to be present, so you'll know when you forget one.

regards, Kornel

PHPTAL mailing list

Reply via email to