truthiness
- noun
- /ˈtruːθɪnəs/
- Specialized
- When evaluating different expressions in code, programmers often consider truthiness to simplify logical operations.
Examples
-
The truthiness of values like non-zero numbers and non-empty strings means they are treated as true in conditional statements.
-
As was pointed out, truthiness already covers the ground exceptionally well.
Blog text (3) -
1) Monarchy rule by one (with a body of laws, an assembly, and a council but no vote): Runs on the honor of the family of the monarchy, falls on honesty—truth, not the current received truth or truthiness.
Blog text (16) -
In a programming context, the concept of truthiness helps determine which values are interpreted as true or false.
Antonyms
Surface Forms
Morphology
Etymology
Truthiness comes from truth plus the suffix -iness, meaning 'the quality of being true'. In computing it describes whether a value is treated as true or false in a condition, so it tells you if something will count as 'true' in code.