Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #103523
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | BartC <bc@freeuk.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: Preprocessor expressions |
| Date | Thu, 9 Feb 2017 15:52:20 +0000 |
| Organization | A noiseless patient Spider |
| Lines | 35 |
| Message-ID | <o7i34a$sc2$1@dont-email.me> (permalink) |
| References | <o62bn5$kms$1@dont-email.me> <d4b65b12-2c67-475e-9121-8d96874df453@googlegroups.com> <o62qjg$ib0$1@dont-email.me> <53636d82-e300-4745-9cf3-b4848b97d8b9@googlegroups.com> <7a6cc8a1-6241-486e-bd87-43a0ccbe78b6@googlegroups.com> <634d154c-9d22-4a83-8d3c-85ca4b89ae06@googlegroups.com> <mGKkA.214862$3L.178811@fx26.am4> <e3c53979-10e8-44e4-b6c4-0cd5b65ae78f@googlegroups.com> <4bb1dbcd-6e3c-40df-8319-eb33b8bfa685@googlegroups.com> <030e3613-d745-46c4-8a46-d625eb276baa@googlegroups.com> <o7a3u7$9u$1@dont-email.me> <1e988be1-ec21-4335-8f79-e6d1e213f1c7@googlegroups.com> <o7dcfu$69q$1@dont-email.me> <857402db-192f-4b61-b416-b473b4063619@googlegroups.com> <affe9e12-0221-499f-a07c-eb41d4a03c3c@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Thu, 9 Feb 2017 15:50:34 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="533e1a964ec268361fbcd80d014ac7ac"; logging-data="29058"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hR+4Ntxz20LcCE2Hu31eo" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
| In-Reply-To | <affe9e12-0221-499f-a07c-eb41d4a03c3c@googlegroups.com> |
| Cancel-Lock | sha1:ZhEXY/zeS4NNoHStuPSF5pMrwRU= |
| Xref | csiph.com comp.lang.c:103523 |
Show key headers only | View raw
On 09/02/2017 13:25, Thiago Adams wrote: > On Wednesday, February 8, 2017 at 6:35:16 PM UTC-2, Thiago Adams wrote: > [...] >> I am starting to think that the most valuable addition to C would >> be templates. > > I want to rephrase this. > > I am starting to think that the most valuable addition to an > separated C extension language would be templates. Most people would ask, why not just use C++? I think templates are of those features that looks deceptively simple but rapidly gets complicated when you look at more details and more examples. Like C's macro-processor, in spades. Things like multiple type arguments; nested templates; recursive templates; choosing which combination of types matches which template; and what exactly constitutes a distinct type? You example of a stack of structs: would there need to be separate push/pop for each struct type, or would a more general purpose one that works for any struct of a certain length, or for any struct or other type that can be considered to be a block of types? There is also the likelihood that, bit by bit as issues arise, you will need yet another feature from C++. I can appreciate what templates can do, but can't see how to add them in a simple fashion. Not at this level of language. (A dynamic language can do most of what templates can add, but it will be slower.) -- bartc
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Preprocessor expressions BartC <bc@freeuk.com> - 2017-01-22 13:24 +0000
Re: Preprocessor expressions jameskuyper@verizon.net - 2017-01-22 07:52 -0800
Re: Preprocessor expressions Ralf Damaschke <rwspam@gmx.de> - 2017-01-22 17:15 +0000
Re: Preprocessor expressions "James R. Kuyper" <jameskuyper@verizon.net> - 2017-01-22 13:32 -0500
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-01-22 17:38 +0000
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-01 03:12 -0800
Re: Preprocessor expressions Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-02-01 11:44 +0000
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-02-01 11:56 +0000
Re: Preprocessor expressions jameskuyper@verizon.net - 2017-02-01 08:35 -0800
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-02 09:23 -0800
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-02-02 18:14 +0000
Re: Preprocessor expressions Keith Thompson <kst-u@mib.org> - 2017-02-02 10:35 -0800
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-02 17:09 -0800
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-05 10:09 -0800
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-05 10:38 -0800
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-05 11:03 -0800
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-02-06 15:17 +0000
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-07 05:36 -0800
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-02-07 21:01 +0000
Re: Preprocessor expressions supercat@casperkitty.com - 2017-02-07 13:16 -0800
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-02-07 22:09 +0000
Re: Preprocessor expressions supercat@casperkitty.com - 2017-02-07 14:33 -0800
Re: Preprocessor expressions Keith Thompson <kst-u@mib.org> - 2017-02-07 14:52 -0800
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-02-08 00:13 +0000
Re: Preprocessor expressions Keith Thompson <kst-u@mib.org> - 2017-02-07 16:39 -0800
Re: Preprocessor expressions jameskuyper@verizon.net - 2017-02-07 16:47 -0800
Re: Preprocessor expressions David Brown <david.brown@hesbynett.no> - 2017-02-08 10:03 +0100
Re: Preprocessor expressions Keith Thompson <kst-u@mib.org> - 2017-02-08 09:19 -0800
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-08 12:35 -0800
Re: Preprocessor expressions Thiago Adams <thiago.adams@gmail.com> - 2017-02-09 05:25 -0800
Re: Preprocessor expressions supercat@casperkitty.com - 2017-02-09 07:37 -0800
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-02-09 15:52 +0000
Re: Preprocessor expressions BartC <bc@freeuk.com> - 2017-01-22 19:34 +0000
Re: Preprocessor expressions jameskuyper@verizon.net - 2017-01-22 13:01 -0800
Re: Preprocessor expressions Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-30 05:30 -0800
csiph-web