Opinion on function/method name overloading

From: Date: Mon, 06 Jun 2016 09:23:48 +0000
Subject: Opinion on function/method name overloading
Groups: php.internals 
Request: Send a blank email to internals+get-93831@lists.php.net to get a copy of this message
Hi, 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 managed implementation's of detecting argument differences with variadic and func_get_args. On to a more subjective argument, "naming things" is hard, and I think many people would appreciate being able to reuse function/method names without sacrificing type safety. Any thoughts?

« previous php.internals (#93831) next »