Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #386761
| From | Michael S <already5chosen@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.c, comp.lang.c++ |
| Subject | Re: Named arguments in C |
| Date | 2024-07-04 15:36 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <20240704153640.00006c58@yahoo.com> (permalink) |
| References | (2 earlier) <uti83u$2ed01$4@dont-email.me> <utjhfn$2r0cr$1@dont-email.me> <v61bbh$1n9ij$1@dont-email.me> <v6602d$2o5t2$1@raubtier-asyl.eternal-september.org> <20240704150249.00004c4d@yahoo.com> |
Cross-posted to 2 groups.
On Thu, 4 Jul 2024 15:02:49 +0300
Michael S <already5chosen@yahoo.com> wrote:
> On Thu, 4 Jul 2024 13:12:18 +0200
> Bonita Montero <Bonita.Montero@gmail.com> wrote:
>
> > Am 02.07.2024 um 18:53 schrieb Ivan Farlenkov:
> > >> I am a fan of being able to name parameters in languages that
> > >> allow it. I am quite confident that this will never come to C.
> > >> It /might/ make it into C++, but as people have been writing
> > >> proposals to do so for 20 years at least, I am not holding my
> > >> breath.
> > > You can sort of already do it in C by using designated
> > > initializers and macros
> > > #define foo(A, B, C, ...) do{\
> > > stuct technical technical={\
> > > var1=default1,\
> > > var2=default2,\
> > > var3=default3 __VA_OPT__(,)\
> > > __VA_ARGS__\
> > > }\
> > > actual_foo(A, B, C, technical.var1, technical.var2,
> > > technical.var3)\ }while(0)
> >
> > What an anquated language that this needs macros.
> >
>
> I don't suppose that somebody likes this macro stuff or takes it
> seriously. It's just a PoC.
> But at least we can imagine how named call arguments can be added to
> "antiquated language" if The Committee decides to do so. It would not
> be easy, but clash with other language features is avoidable.
> Not so with "modern language" that your like. For "modern language"
> the clash with other [mis]features will be unavoidable and fatal.
>
On the second thought.
I can think about the way of adding named arguments to "modern
language". But the way I am thinking of is an equivalent of creation of
new declaration/call syntax in parallel with existing syntax. It would
require two new keywords. It will make every declaration and call a
word longer.
None of that is strictly required for addition of named arguments to
"antiquated language" although addition of new keyword for declaration
(but not for calls!) is not necessarily a bad idea.
> [O.T.]
> If I am not mistaken "modern language" is so twisted that it can't
> even have proper designated initializers for struct (proper =
> arbitrary order). I don't know what is the reason for that, but the
> reason exists.
>
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Block Comments Or Rest-Of-Line Comments? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-03-21 06:19 +0000
Re: Block Comments Or Rest-Of-Line Comments? bart <bc@freeuk.com> - 2024-03-21 09:39 +0000
Re: Block Comments Or Rest-Of-Line Comments? Mikko <mikko.levanto@iki.fi> - 2024-03-21 13:37 +0200
Re: Block Comments Or Rest-Of-Line Comments? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-03-21 21:16 +0000
Re: Block Comments Or Rest-Of-Line Comments? David Brown <david.brown@hesbynett.no> - 2024-03-22 10:02 +0100
Re: Block Comments Or Rest-Of-Line Comments? Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-03-22 16:13 +0000
Re: Block Comments Or Rest-Of-Line Comments? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-03-23 02:58 +0000
Re: Block Comments Or Rest-Of-Line Comments? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-22 21:15 -0700
Re: Block Comments Or Rest-Of-Line Comments? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-03-23 04:44 +0000
Re: Block Comments Or Rest-Of-Line Comments? David Brown <david.brown@hesbynett.no> - 2024-03-23 16:24 +0100
Re: Block Comments Or Rest-Of-Line Comments? Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2024-03-23 18:34 +0000
Named arguments in C Ivan Farlenkov <yo_99@mail.ru> - 2024-07-02 21:53 +0500
Re: Named arguments in C Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-07-02 19:39 +0000
Re: Named arguments in C Richard Harnden <richard.nospam@gmail.invalid> - 2024-07-02 20:44 +0100
Re: Named arguments in C Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-07-03 20:16 +0000
Re: Named arguments in C Richard Harnden <richard.nospam@gmail.invalid> - 2024-07-04 09:59 +0100
Re: Named arguments in C Kaz Kylheku <643-408-1753@kylheku.com> - 2024-07-04 09:25 +0000
Re: Named arguments in C bart <bc@freeuk.com> - 2024-07-02 20:50 +0100
Re: Named arguments in C Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-07-02 15:01 -0700
Re: Named arguments in C Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-07-03 20:42 +0000
Re: Named arguments in C bart <bc@freeuk.com> - 2024-07-04 01:12 +0100
Re: Named arguments in C Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-07-03 19:50 -0700
Re: Named arguments in C Kaz Kylheku <643-408-1753@kylheku.com> - 2024-07-04 03:15 +0000
Re: Named arguments in C Opus <ifonly@youknew.org> - 2024-07-04 11:45 +0200
Re: Named arguments in C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-03 00:17 +0000
Re: Named arguments in C Bonita Montero <Bonita.Montero@gmail.com> - 2024-07-04 13:12 +0200
Re: Named arguments in C Michael S <already5chosen@yahoo.com> - 2024-07-04 15:02 +0300
Re: Named arguments in C Michael S <already5chosen@yahoo.com> - 2024-07-04 15:36 +0300
Re: Named arguments in C bart <bc@freeuk.com> - 2024-07-04 13:49 +0100
Re: Named arguments in C Bonita Montero <Bonita.Montero@gmail.com> - 2024-07-04 15:37 +0200
Re: Named arguments in C Bonita Montero <Bonita.Montero@gmail.com> - 2024-07-04 15:38 +0200
Re: Named arguments in C bart <bc@freeuk.com> - 2024-07-04 14:39 +0100
Re: Named arguments in C Bonita Montero <Bonita.Montero@gmail.com> - 2024-07-04 15:46 +0200
Re: Block Comments Or Rest-Of-Line Comments? scott@slp53.sl.home (Scott Lurndal) - 2024-03-21 14:16 +0000
Re: Block Comments Or Rest-Of-Line Comments? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-03-21 08:19 -0700
Re: Block Comments Or Rest-Of-Line Comments? cross@spitfire.i.gajendra.net (Dan Cross) - 2024-03-21 17:58 +0000
Re: Block Comments Or Rest-Of-Line Comments? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-03-22 06:27 -0700
Re: Block Comments Or Rest-Of-Line Comments? cross@spitfire.i.gajendra.net (Dan Cross) - 2024-03-22 23:16 +0000
Re: Block Comments Or Rest-Of-Line Comments? Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-03-21 14:19 +0000
Re: Block Comments Or Rest-Of-Line Comments? David Brown <david.brown@hesbynett.no> - 2024-03-21 16:20 +0100
Re: Block Comments Or Rest-Of-Line Comments? Richard Harnden <richard.nospam@gmail.invalid> - 2024-03-21 16:32 +0000
Re: Block Comments Or Rest-Of-Line Comments? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-21 12:23 -0700
Re: Block Comments Or Rest-Of-Line Comments? Richard Harnden <richard.nospam@gmail.invalid> - 2024-03-21 19:41 +0000
Re: Block Comments Or Rest-Of-Line Comments? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-21 12:48 -0700
Re: Block Comments Or Rest-Of-Line Comments? Richard Harnden <richard.nospam@gmail.invalid> - 2024-03-21 19:54 +0000
Re: Block Comments Or Rest-Of-Line Comments? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-03-21 21:18 +0000
Re: Block Comments Or Rest-Of-Line Comments? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-21 15:50 -0700
Re: Block Comments Or Rest-Of-Line Comments? scott@slp53.sl.home (Scott Lurndal) - 2024-03-21 20:19 +0000
Re: Block Comments Or Rest-Of-Line Comments? Kaz Kylheku <433-929-6894@kylheku.com> - 2024-03-21 20:35 +0000
Re: Block Comments Or Rest-Of-Line Comments? paul@paulglover.net.invalid - 2024-04-26 22:41 +0000
Re: Block Comments Or Rest-Of-Line Comments? Kaz Kylheku <433-929-6894@kylheku.com> - 2024-03-21 20:22 +0000
Re: Block Comments Or Rest-Of-Line Comments? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-21 15:41 -0700
Re: Block Comments Or Rest-Of-Line Comments? James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-03-22 12:20 -0400
Re: Block Comments Or Rest-Of-Line Comments? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-22 09:33 -0700
Re: Block Comments Or Rest-Of-Line Comments? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-03-22 23:42 +0000
Re: Block Comments Or Rest-Of-Line Comments? David Brown <david.brown@hesbynett.no> - 2024-03-22 10:09 +0100
Re: Block Comments Or Rest-Of-Line Comments? fir <fir@grunge.pl> - 2024-03-21 19:46 +0100
Re: Block Comments Or Rest-Of-Line Comments? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-03-21 21:14 +0000
Re: Block Comments Or Rest-Of-Line Comments? Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2024-03-22 22:50 +0000
Re: Block Comments Or Rest-Of-Line Comments? DFS <nospam@dfs.com> - 2024-04-23 16:13 -0400
Re: Block Comments Or Rest-Of-Line Comments? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-04-24 07:49 +0000
Re: Block Comments Or Rest-Of-Line Comments? Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-04-24 12:36 +0000
Re: Block Comments Or Rest-Of-Line Comments? Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2024-04-24 21:41 +0200
Re: Block Comments Or Rest-Of-Line Comments? Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-04-25 03:48 +0000
Re: Block Comments Or Rest-Of-Line Comments? DFS <nospam@dfs.com> - 2024-04-25 10:14 -0400
Re: Block Comments Or Rest-Of-Line Comments? Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-04-25 22:10 +0000
Re: Block Comments Or Rest-Of-Line Comments? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-04-25 19:33 -0700
Re: Block Comments Or Rest-Of-Line Comments? DFS <nospam@dfs.com> - 2024-04-25 22:44 -0400
Re: Block Comments Or Rest-Of-Line Comments? Kaz Kylheku <643-408-1753@kylheku.com> - 2024-04-23 21:06 +0000
Re: Block Comments Or Rest-Of-Line Comments? Lowell Gilbert <lgusenet@be-well.ilk.org> - 2024-04-23 19:25 -0400
Re: Block Comments Or Rest-Of-Line Comments? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2024-04-24 01:12 +0100
Re: Block Comments Or Rest-Of-Line Comments? Lowell Gilbert <lgusenet@be-well.ilk.org> - 2024-04-23 20:26 -0400
Re: Block Comments Or Rest-Of-Line Comments? Kaz Kylheku <643-408-1753@kylheku.com> - 2024-04-24 00:58 +0000
Re: Block Comments Or Rest-Of-Line Comments? paul@paulglover.net.invalid - 2024-04-26 22:32 +0000
csiph-web