From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ab1d177a5a26577d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Chuck" Newsgroups: comp.lang.ada Subject: Re: What's wrong with C++? Date: Thu, 17 Feb 2011 23:59:24 -0600 Organization: A noiseless patient Spider Message-ID: References: Injection-Date: Fri, 18 Feb 2011 05:59:33 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="Nvo31E/p3EKlT4bDI5+9FA"; logging-data="17856"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DPEJpByzOS1E4GmST2U7E" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-RFC2646: Format=Flowed; Original X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 Cancel-Lock: sha1:2QgrTS08rLhjuF7jD0BBYMXDfvU= X-Priority: 3 X-MSMail-Priority: Normal Xref: g2news1.google.com comp.lang.ada:17392 Date: 2011-02-17T23:59:24-06:00 List-Id: (I am reading and responding to this thread in reverse-chronological order, FYI.) Hyman Rosen wrote: > C++ is very susceptible to horrible runaway type names because > it does have automatic instantiation of templates, and especially > in the presence of template metaprogramming. Without automatic > instantiation and partial specialization, Ada has rather less need > for this. (Which does not mean C++ is bad, just different.) > I don't use templates because of the auto-instantiation, but I would be remiss to say that I am 100% sure that auto-generation from templates is not sometimes a good thing (I haven't evolved my own methods in the proverbial "large-scale development" scene, but isn't that an exception (NPI)?). In general, I find myself too removed from what's going on when there is auto-generation. So, I agree with your thumbs down of that. I think "template metaprogramming" is for those with way too much time on their hands (or something like that). In fact, I've seen that someone coined the phrase "stupid template tricks" already.