Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: New and improved version of cdecl Date: Tue, 09 Dec 2025 17:51:05 -0800 Organization: None to speak of Lines: 33 Message-ID: <87bjk7ayuu.fsf@example.invalid> References: <87bjlyobts.fsf@example.invalid> <10dlrl2$78t1$1@dont-email.me> <87v7k1z3xk.fsf@example.invalid> <10h9fde$th53$1@dont-email.me> <20251209121945.235@kylheku.com> <10hafso$16u9e$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Date: Wed, 10 Dec 2025 01:51:09 +0000 (UTC) Injection-Info: dont-email.me; posting-host="a923940154954f63d24cae2069589224"; logging-data="1268602"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IX9WxQ2+GTqlTPW4mKAiv" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:yYc1Ognz6L8Ri7ZzFAqIYMg0ZZI= sha1:MRmcsYJICmjUGLfSZD1JnCVH3Z4= Xref: csiph.com comp.lang.c:395751 comp.lang.c++:123126 "Paul J. Lucas" writes: > On 12/9/25 12:38 PM, Kaz Kylheku wrote: >> On 2025-12-09, Paul J. Lucas wrote: >>> On 10/26/25 3:36 PM, Keith Thompson wrote: >>>> (I'm not entirely pleased that the newer version expands >>>> "char" to "character" and, worse, "int" to "integer", but I >>>> can live with it.) >>> >>> Hence the --no-english-types or -T command line option or the >>> "set noenglish" command (from within cdecl or a config file). >> The problem is that the English words chosen already have a >> meaning. "Integer" is a type category in C; > > It's not a keyword, so that's irrelevant. Likewise, > "Character." > >>> The thought was that those newer to C and less familiar with >>> its types might benefit from more elaborate output. >> This kind of thing just ensures that newbies go sideways from >> being less familiar to being incorrectly familiar. > > Opinion noted. I disagree. If you prefer the C-like syntax rather than pseudo-English (as I do), you can change the default by creating a ".cdeclrc" file. $ cdecl explain "int n;" declare n as integer $ echo "set noenglish-types" > $HOME/.cdeclrc $ cdecl explain "int n;" declare n as int $ -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */