Path: csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: What I've learned in comp.lang.c Date: Thu, 08 Feb 2024 17:53:25 -0800 Organization: A noiseless patient Spider Lines: 23 Message-ID: <86plx65roq.fsf@linuxsc.com> References: <20240204191630.146@kylheku.com> <20240205183233.00000632@yahoo.com> <20240205124031.788@kylheku.com> <874jekvbdh.fsf@bsb.me.uk> <87msscthq3.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: dont-email.me; posting-host="5ded87dca6ebfa6cbf5e6333b6958a23"; logging-data="2422627"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+u+K+pyaIYFbf5p+alkHdpd4JdMGr1Y18=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:BELX5LeNECOqi+mH+ZY8vmdvTIQ= sha1:SAsRXum8A4pw9jQ22hhC8tr9pr8= Xref: csiph.com comp.lang.c:382157 Ben Bacarisse writes: > The most common meaning of "idiomatic", and the one I usually > associate with it in [the context of some C coding conventions], > is "containing expressions that are natural and correct". [...] It surprised me to read this. In my lexicon "idiomatic" usually means something more like "easily understood by a native speaker but resistant to literal translation". An example might be "raining cats and dogs". Looking up "idiom" and "idiomatic" in several online dictionaries, the meanings are definitely multi-valued. In C we might say that Duff's Device is idiomatic. On the other hand we could say K&R style function definitions are unusual in contemporary C idiom (and so by implication ANSI/ISO C style function definitions are idiomatic). So one meaning is more or less "normal practice" whereas another meaning is more like "strange although often used construction". Please note that I am expressing no opinion on which meaning is "better" or "worse", or anything along those lines. I just found it interesting that these words have somewhat divergent meanings.