On 12/22/2012 06:54 AM, Joe Darcy wrote:
Hello Eric,
A few initial comments.
I'm not convinced a getNumParameters method pulls its weight. At the
very least, the specification should be updated to say whether or not
it includes synthetic + "natural" parameters or just natural ones.
(Different methods in core reflection indirectly return a synthetic +
"natural" count vs a natural count today.)
Hi Joe,
getNumParameters (I prefer the name getParameterCount() BTW) is very
important for other languages than Java, by example most of the dynamic
language runtimes use multi-dispatch at the border between their
languages and Java, so their runtimes group methods with the same arity
together and being able to do that without calling getParameterTypes()
is a good idea IMO.
cheers,
Rémi