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: 103376,a0be06fbc0dd71f1 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.germany.com!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: The future of Ada is at risk Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <20071229040639.f753f982.coolzone@it.dk> <1199452391.7932.27.camel@K72> Date: Sun, 6 Jan 2008 11:26:43 +0100 Message-ID: <14x03c6oief1w.mx54zaatx0ry.dlg@40tude.net> NNTP-Posting-Date: 06 Jan 2008 11:26:44 CET NNTP-Posting-Host: 6ba2c179.newsspool1.arcor-online.net X-Trace: DXC=maUCdMXNKP3^cW`WBF>WQ4Fo<]lROoR1Fl8W>\BH3Y2R?PCemgf>m4DNcfSJ;bb[5IRnRBaCdG>oOn`oRN: On Sun, 06 Jan 2008 10:34:25 +0100, Agyaras wrote: > I think that the default string type should be the unbounded string, No, all string types should simply be subtypes of each other. In that case you will need no conversions at all and no specialized library versions for all geometrically exploding combinations of string types. The compiler would convert representations where appropriate. Same with Character vs. Wide_Character vs. Wide_Wide_Character. BTW, if you look at use statistics of String vs. Unbounded_String you will wonder how minor is use of Unbounded_String in Ada programs. Ada 83 string design was extremely successful. You just do not need Unbounded_String in most cases. The cases where Unbounded_String appears are rare and usually at the language weakness points. For example, when you need to return two strings out of one function. Another example is when you want to put string into a record. > Talking about safety and ergonomics: how do you tell which Ada > subprograms raise which exceptions? True, exceptions should be contracted. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de