functiestatus
Functiestatus is a proposed metric in software engineering that describes the degree to which a function or code unit adheres to functional programming principles, especially referential transparency and determinism. The term blends 'function' and 'status' to indicate a function’s functional state.
The concept is primarily used as a diagnostic tool in mixed-paradigm codebases. It aims to quantify how
Measurement typically combines indicators related to functional purity: referential-transparency score (RT), determinism (DET), and limited reliance
A common composite form is functiestatus = 0.4×RT + 0.3×DET + 0.2×IM + 0.1×(1−EX), where RT is referential transparency, DET
Examples: a pure arithmetic function such as f(x,y) = x + y scores near 1, whereas a function
Relation to existing concepts: functiestatus relates to referential transparency and function purity, but it is not
Limitations and usage caveats: as a heuristic, functiestatus can be sensitive to measurement methods and may
See also: referential transparency; pure function; side effect; functional programming.