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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 06 Apr 2007 18:42:47 -0500 Sender: jsa@sirius.goldenthreadtech.com 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: jayessay Organization: Tangible Date: 06 Apr 2007 19:52:31 -0400 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 24.61.34.12 X-Trace: sv3-sr4hb8HaD+ocbP8Sl+czHFusCTVcPeRE5Uaz0RlduEPJDjNdHGHj/Z010luH6QzpuCUhubjRWker540!1rXnUPmZukDEH1q1hq9+vmElELfeiADjDrFLlK7mlR63GGfGKby9GI9sahFoLZhAwMbiDk5HffQH!HcDJnmzhOBTL29lGW0SuCMfO X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Xref: g2news1.google.com comp.lang.ada:14822 Date: 2007-04-06T19:52:31-04:00 List-Id: 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. > > If you really want to test a prime, for example, why on earth > > would you not do so at run time, when you actually need the value? > > Because in C++, these values direct the compiler into different Yes, but really - as Ray points out this is a silly artificial example. > is today. There are people working on more straightforward > approaches to this, and if they work out, they may make it into C++. Ah - even more Greenspunning. *sigh* /Jon -- 'j' - a n t h o n y at romeo/charley/november com