Language Idioms
DARIN JOHNSON
ee163acp at sdcc13.UUCP
Sun Feb 17 07:20:01 AEST 1985
I think the term idiom is appropriate in this usage. To me and idiom is
something native speakers of a language readily understand, but which
book-learned speakers have difficulty when translating. They are
usually context sensitive. For example, the C favorite for
for (;;)
is usually readily understood by C programmers, but FORTRAN and other
similar programmers have a different concept of what the word 'for'
means. They may think that this is an endless loop until the context is
looked at (a break inside the loop). Another problem with C 'for'
statements is that it is really a form of the 'while' confusing lots of
people who thought they knew what a 'for' statement was.
LISP provides lots of confusion for people who read the manuals that
have only definitions of the words. There is almost no way to
understand a LISP program by using a 'dictionary'. A moderate user will
also be confused over some strange shorthand. The APL example given
earlier is a classic example of what I consider an 'idiom'. Why in the
world would anyone want to '.and' a list of words????
So if you take 'idiom' at its defined meaning, it is mostly applicable
to usage as a programming word. (at least it is the closest in meaning
what is needed)
Darin Johnson @ UCSD
More information about the Comp.lang.c
mailing list