-
Overview
Specialpurpose syntactic constructs in programming languages are known as “idioms”.
-
idioms
An idiom is a phrase or expression that typically presents a figurative, non-literal meaning attached to the phrase; but some phrases become figurative idioms while retaining the literal meaning of the phrase.
A programming idiom is the usual way to code a task in a specific language.
There are many possibilities to write a code, using the idiom makes it immediately identifiable by experienced readers.
-
References
- 《Good Habits for Great Coding Improving Programming Skills with Examples in Python》读书笔记
- What is a programming idiom?
- What is idiomatic?