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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.95.196 with SMTP id t187mr27511084ywb.17.1436550068239; Fri, 10 Jul 2015 10:41:08 -0700 (PDT) X-Received: by 10.182.49.225 with SMTP id x1mr176060obn.16.1436550068163; Fri, 10 Jul 2015 10:41:08 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!e109no90740qge.1!news-out.google.com!t2ni6485igk.0!nntp.google.com!qs7no3541604igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 10 Jul 2015 10:41:08 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2602:306:3784:5b10:5cd9:867b:597a:c5b9; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 2602:306:3784:5b10:5cd9:867b:597a:c5b9 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: is it possible to add multi-line raw strings (HERE-DOCUMENT) support to Ada? From: David Botton Injection-Date: Fri, 10 Jul 2015 17:41:08 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:26748 Date: 2015-07-10T10:41:08-07:00 List-Id: > I would strongly oppose this for Ada (given Ada's safety critical > design goals). No Ada's design goal was to allow safety critical not pinhole to it ever. For safety critical systems you want to use various pragma restrictions, no issue to restrict this use when it makes sense to do so. > In your proposal, if the terminating sequence was slightly mistyped > then the following program code would be consumed as data until a > valid heredoc terminator was found. Easily caught by compilers and warnings issues if suspect. > This is also why there is no multiline comment construct in Ada > IIRC but only "--". Multiline comments are often abused during debug sessions and easy to slip by if left in place. That is very different than a HERE-DOCUMENT use case. David Botton