An “idiom” in a (non-programming) language is a statement or expression that is unique to a particular language. Actually, that does not follow the “rules” of langauge and simply exists, because native speakers “just know” what this means. (for example, in English we say “in line”, but “out of line” - this will be idiomatic)
Moving this to the programming arena, we get things like:
if(c=GetValue()) {...}
which usually means:
c = GetValue(); if (c != 0) {....}
which every C / C ++ programmer understands, but completely confuses those who come from another programming language.
James Curran Nov 19 '08 at 16:31 2008-11-19 16:31
source share