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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,73175d2d01a1b1dd X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.8.135 with SMTP id r7mr7407445pba.8.1317746841973; Tue, 04 Oct 2011 09:47:21 -0700 (PDT) Path: lh7ni11441pbb.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: subprogram must not be deeper than access type Date: Tue, 04 Oct 2011 18:47:20 +0200 Organization: Ada @ Home Message-ID: References: <818752663338654817.822041rmhost.bauhaus-maps.arcor.de@news.arcor.de> <15r7hdzgyr0fc.1djn7vwy23dfg$.dlg@40tude.net> <1uqthqxzri6j3.i18ifhbwmzdc.dlg@40tude.net> <10bj41auuxi17$.42qw3wdubqn3.dlg@40tude.net> <4e8b21fc$0$6571$9b4e6d93@newsspool3.arcor-online.net> <4e8b2ee6$0$6573$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 7l1g1PpQtKdmCiXJ1feKqw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.51 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news1.google.com comp.lang.ada:18298 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2011-10-04T18:47:20+02:00 List-Id: Le Tue, 04 Oct 2011 18:05:57 +0200, Georg Bauhaus = a =C3=A9crit: >> Yes, and that's what Functional Languages do. I believe Ada could = >> benefit from >> more FP (it already has something of FP). > > How so? What I miss is currying (thinking in term of currying, help the design = too), tail recursion optimization (not part of language this one, but = could be advised), and package interface working more like structure = signature. But there are already some great parts of FP in Ada. Value semantic is = often enforced, we now have conditional expressions (Ada 2012) and Ada = constants are really constants at the level of scope execution (same kin= d = of constants as in FP, not the same as in C/C++). There was Agol60 and Pascal, FP was a missing influence of Ada. But FP is neither an Holy Grail. Example: Design By Contract (=E2=84=A2)= , is not = FP. Other example: in real life, references are really required for = performances, even if hidden inside package implementation (no one enjoy= = copying a whole structure to update that structure, it's a waste of = performance). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [Ep= igrams on = Programming =E2=80=94 Alan J. =E2=80=94 P. Yale University] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [Idem] Java: Write once, Never revisit