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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: C# new features (v.7) Date: Wed, 14 Dec 2016 10:59:42 -0600 Organization: Aioe.org NNTP Server Message-ID: References: <5f542dff-8dd0-49b8-8228-3ccc8248c57d@googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: 52btGir6u7PsubGbyxCtLg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:32824 Date: 2016-12-14T10:59:42-06:00 List-Id: On 12/14/2016 7:29 AM, gautier_niouzes@hotmail.com wrote: > I've come across a list of new features in the upcoming version of C#. > Funnily, a good half are already in Ada - four of them actually already in Ada 1983 ! > I've marked here with a '*' those items, a '.' items where I think a similar feature exists and '-' where I think the feature doesn't exist in Ada. > Comments and corrections are welcome. > > * Feature # 1 - Binary literals > * Feature # 2 - Digit Separators > * Feature # 3 - Tuple data type now available as Value type > . Feature # 4 - Out parameters now have a fluid usage > * Feature # 5 - Local functions > . Feature # 6 - Ref returns and ref locals > * Feature # 7 - New possibility for throw expressions > - Feature # 8 - New possibility for lambda expression bodied methods > - Feature # 9 - Pattern matching for types > > Perhaps an Ada support by Microsoft anytime soon ?... > _________________________ > Gautier's Ada programming > http://gautiersblog.blogspot.com/search/label/Ada > NB: Pour une réponse directe, adresse e-mail valable par le lien ci-dessus > Along the same thought, Python 3.6, which came out just 2 days ago, has new features, and quick look shows many are allreadyin Ada for 30 years or more. https://docs.python.org/3.6/whatsnew/3.6.html -- PEP 515, underscores in numeric literals. "adds the ability to use underscores in numeric literals for improved readability" -- PEP 526, syntax for variable annotations. "introduced the standard for type annotations of function parameters, a.k.a. type hints" (poor man's way of adding data type declaration? :) PEP 492 introduced support for native coroutines and async / await syntax (Ada tasks?) etc... Many "modern" languages are adding "new" features, which are allready in Ada for 10's of years, Hummm.... May be Ada needs a better marketing department :) --Nasser