I see the phrase "programming idiom" thrown around as if it is commonly understood. Yet, in search results and stackoverflow I see everything...
From micro:
- Incrementing a variable
- Representing an infinite loop
- Swapping variable values
To medium:
To macro:
- Programming paradigm or common library features as idiom
- Process model as idiom
- A collection of idioms equals a new paradigm
Is there a single, common definition for "programming idiom"? Since "programming idiom" is used in many scopes:
- Micro: syntactic nuance or common syntax
- Medium: common style and patterns
- Macro: programming paradigms as idiom
Is it valid to use the phrase in any of these scopes? The answers so far focus on syntactic idioms. Are the others valid as well?