overloadshape
Overloadshape is a concept used in software engineering to describe the arrangement and characteristics of a set of overloaded function or method signatures within an interface. The term is used to discuss how the available overloads form a “shape” that affects discoverability, maintainability, and dispatch performance.
Definition and scope: An overload shape comprises the arity (number of parameters), the types of each parameter,
Role in design: The shape influences overload resolution rules and how easy it is for a caller
Examples: Consider an API with draw(int w, int h) and draw(Size s). The overload shape is defined
Impact and considerations: When designing an API, teams may manage overload shape to balance expressiveness and
See also: function overloading, method resolution, API design, type inference.