views:

152

answers:

1

Hi All,

In Ruby, I know that Method#arity will return a value representing the number of arguments accepted by a method, however I do not know why it is called arity. Can anyone provide some insight into why it would exist in such a seemingly random namespace? and, how do you pronounce it?

THX :)

-C

+10  A: 

Because that's actually the name for it. http://en.wikipedia.org/wiki/Arity

I pronounce it AIR-i-TEE like in polarity.

Jimmy
Funny, I pronounce it ARR-i-TEE, like in.... er... polarity. ;)The first syllable is the sound from "Harry" or "Larry" for me (I'm Australian)
Cowan
yes, and I pronounce Harry "Hairy". Howdy from the USA.
Jimmy