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: 103376,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: why learn C? References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <1175215906.645110.217810@e65g2000hsc.googlegroups.com> <1175230700.925143.28490@n59g2000hsh.googlegroups.com> <1175494583.376672.93730@n59g2000hsh.googlegroups.com> Date: Tue, 03 Apr 2007 10:00:18 +1000 Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:6dmXU9PRCWlpD+ByW+44lQgypSU= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: quokka.wn.com.au 1175558383 202.173.153.89 (3 Apr 2007 07:59:43 +0800) X-Complaints-To: abuse@westnet.com.au Path: g2news1.google.com!news4.google.com!news.glorb.com!quokka.wn.com.au!not-for-mail Xref: g2news1.google.com comp.lang.ada:14752 Date: 2007-04-03T10:00:18+10:00 List-Id: >>>>> "kevin" == kevin cline writes: kevin> Because Ada generics have to be explicitly instantiated. kevin> Ada requires an explicit instantiation for every kevin> combination of types that appears in the program. C++ kevin> template functions are implicitly instantiated, and can be kevin> defined once to cover all combinations of physical units, kevin> like this: It is a compromise between: - having a language where you are forced to be specific about the details OR - having a language where the compiler tries to guess what you meant. Personally I prefer the first option, as I have found the second option hides bugs. Many programmers prefer the later, which is (presumably) why languages like Perl, PHP, Python and ASP are so popular. -- Brian May