Programming Terminology – Name for the ‘Spec’ of a Function/Method

language-agnosticterminology

I'm pretty sure there is a special name for the 'spec' of a function/method. It's a word that refers to

  • how many arguments it takes
  • the order of arguments
  • which arguments are optional

Is there a name for that?

Best Answer

Usually this is called a type signature.

A type signature includes the function's return type, the number of arguments, the types of arguments, or errors it may pass back.

Related Topic