Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #123126

Re: New and improved version of cdecl

From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c, comp.lang.c++
Subject Re: New and improved version of cdecl
Date 2025-12-09 17:51 -0800
Organization None to speak of
Message-ID <87bjk7ayuu.fsf@example.invalid> (permalink)
References (1 earlier) <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>

Cross-posted to 2 groups.

Show all headers | View raw


"Paul J. Lucas" <paul@lucasmail.org> writes:
> On 12/9/25 12:38 PM, Kaz Kylheku wrote: 
>> On 2025-12-09, Paul J. Lucas <paul@lucasmail.org> 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 */

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

New and improved version of cdecl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-10-22 14:39 -0700
  Re: New and improved version of cdecl Thiago Adams <thiago.adams@gmail.com> - 2025-10-22 22:19 -0300
  Re: New and improved version of cdecl Andrey Tarasevich <noone@noone.net> - 2025-10-26 12:09 -0700
    Re: New and improved version of cdecl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-10-26 15:36 -0700
      Re: New and improved version of cdecl "Paul J. Lucas" <paul@lucasmail.org> - 2025-12-09 07:31 -0800
        Re: New and improved version of cdecl Kaz Kylheku <046-301-5902@kylheku.com> - 2025-12-09 20:38 +0000
          Re: New and improved version of cdecl "Paul J. Lucas" <paul@lucasmail.org> - 2025-12-09 16:46 -0800
            Re: New and improved version of cdecl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-12-09 17:51 -0800
  Re: New and improved version of cdecl "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-10-26 14:44 -0700
    Re: New and improved version of cdecl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-10-26 15:38 -0700
      Re: New and improved version of cdecl "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-10-27 11:51 -0700

csiph-web