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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2078ce7aac45af5b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.98.138 with SMTP id ei10mr3727938wib.4.1353487282393; Wed, 21 Nov 2012 00:41:22 -0800 (PST) Path: q13ni3880wii.0!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.12.MISMATCH!feed.xsnews.nl!border-2.ams.xsnews.nl!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!backlog2.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada202X : Adding functors Date: Thu, 15 Nov 2012 11:11:15 +0100 Organization: cbb software GmbH Message-ID: <15w6caje3zsh$.t5nqtwoa77x5$.dlg@40tude.net> References: <0114d327-9f9f-4ad2-9281-56331d11a90c@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1720 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-11-15T11:11:15+01:00 List-Id: On Wed, 14 Nov 2012 16:20:44 -0800 (PST), sbelmont700@gmail.com wrote: > On Monday, November 12, 2012 5:09:15 PM UTC-5, Martin wrote: >> I'm increasingly using functors in my C++ life and they are very cool. I'd >> like to be able to use them in my Ada life too but the language doesn't >> support it - or can someone tell me I'm wrong? > > IMHO, lambda closures are better in every way than a 'functor', and I for > one would welcome their addition to Ada. I doubt that could be made compatible with static typing. Comparing advantages of both static typing is a clear winner. But it is of course an interesting question how much functions could be made first class citizens without loosing safety (and proper typing). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de