Rank (computer programming): Difference between revisions

Content deleted Content added
No edit summary
Disambiguated: dyadBinary function
Line 3:
Strictly, no formal definition can be provided which applies to every [[programming language]], since each of them has its own concepts, [[Formal semantics of programming languages|semantics]] and terminology; the term may not even be applicable or, to the contrary, applied with a very specific meaning in the context of a given language.
 
In the case of [[APL programming language|APL]] the notion applies to every operand; and [[Binary function|dyad]]s ("binary functions") have a ''left rank'' and a ''right rank''.
 
The box below instead shows how ''rank of a type'' and ''rank of an array expression'' could be defined (in a semi-formal style) for C++ and illustrates a simple way to calculate them at compile time.