December 2022
Intermediate to advanced
528 pages
15h 41m
English
The simplicity of mathematical functions is often enriched in programming languages with features that facilitate their use as programming abstractions. Some of the most common features are discussed in this chapter. Hybrid languages, which combine functional and object-oriented programming, typically distinguish between operators, methods, and functions and define mechanisms to bridge all three. Additionally, type parameterization, optional arguments, and variable-length arguments are commonly used to define templates that represent families of functions.
Most programming languages offer a mechanism to structure code in terms of functions. You define a function by giving it ...
Read now
Unlock full access