comp.lang.ada
 help / color / mirror / Atom feed
From: David Botton <david@botton.com>
Subject: Re: is it possible to add multi-line raw strings (HERE-DOCUMENT) support to Ada?
Date: Fri, 10 Jul 2015 10:41:08 -0700 (PDT)
Date: 2015-07-10T10:41:08-07:00	[thread overview]
Message-ID: <af71469f-983d-4c61-ad1a-78641e674ec1@googlegroups.com> (raw)
In-Reply-To: <mnov8f$ssc$1@dont-email.me>


> 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

  reply	other threads:[~2015-07-10 17:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-10 17:00 is it possible to add multi-line raw strings (HERE-DOCUMENT) support to Ada? Nasser M. Abbasi
2015-07-10 17:18 ` David Botton
2015-07-10 17:26 ` Simon Clubley
2015-07-10 17:41   ` David Botton [this message]
2015-07-10 21:04 ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox