June 2004
Intermediate to advanced
848 pages
21h 28m
English
Arity is a computer science term meaning the number of arguments a method or operator takes. It was originally a joking term, taken from “polarity” meaning the number of poles something has, so by extension “arity” must mean “number of”. Well, just like your mother told you if you pulled a face it would stick like that, the term arity stuck.
In some languages, methods may have variable-arity which means their last or only argument is actually a list of arguments. Congratulations; with JDK 1.5, Java is now one of the languages with variable-arity! This is another hack that was put in Java because some engineers really ...
Read now
Unlock full access