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 Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps82.POSTED!53ab2750!not-for-mail Sender: blaak@METROID 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> <1btkgzzj6zimp.acsq8mkzqz1w$.dlg@40tude.net> <1175488143.324741.283480@y80g2000hsf.googlegroups.com> <9l1Rh.7648$%G4.3596@trndny05> <7FzRh.24$Rg2.14@trndny02> From: Ray Blaak Message-ID: Organization: The Transcend User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 07 Apr 2007 00:39:53 GMT NNTP-Posting-Host: 154.20.94.243 X-Trace: edtnps82 1175906393 154.20.94.243 (Fri, 06 Apr 2007 18:39:53 MDT) NNTP-Posting-Date: Fri, 06 Apr 2007 18:39:53 MDT Xref: g2news1.google.com comp.lang.ada:14824 Date: 2007-04-07T00:39:53+00:00 List-Id: jayessay writes: > Hyman Rosen writes: > > > Ray Blaak wrote: > > > it is still the case that "programming" like this with templates > > > is fundamentally strange. One has to think very differently compared > > > to the usual programming languages. > > > > It is a declarative style involving immutable objects and pattern > > matching. I understand that this is similar to the way functional > > programming languages work in some respects. Thinking differently > > isn't necessarily a flaw, either. > > Declarative isn't the same as functional. But even if it were, what's > the point? I'm not sure, but I believe Ray's point was that using a > limited type language to do general computation is, shall we say, > convoluted. Right. I have no problem with declarative programming. C++ template programming, however, achieves its ends as a "fortunate" accidental side effect. If the purpose is to do compile time computation, then the language should be designed to be clear and understandable for that purpose, whether declarative or functaional. Note I am not saying that C++ templates are in themselves confusing for their original purpose of parametized code generation (although they can be justifiably criticized), but only that their application to the purpose of compile time computation is confusing. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, rAYblaaK@STRIPCAPStelus.net The Rhythm has my soul.