comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: is it possible to add multi-line raw strings (HERE-DOCUMENT) support to Ada?
Date: Fri, 10 Jul 2015 23:04:33 +0200
Date: 2015-07-10T23:04:33+02:00	[thread overview]
Message-ID: <1d75x6ii1vkr7.d1tg9hhyzvwl.dlg@40tude.net> (raw)
In-Reply-To: mnoto0$4u5$1@speranza.aioe.org

On Fri, 10 Jul 2015 12:00:52 -0500, Nasser M. Abbasi wrote:

> It is very useful to be able to have multi-line raw
> strings in the code, written as is, over many lines,
> as one raw string.

There is no such thing. String is a string an array of characters.

> Ada currently does not support this feature. This is called
> multi-line raw strings, and also called HERE-DOCUEMNT
> 
> https://en.wikipedia.org/wiki/Here_document

Useless and misleading.

Ada as an OO language supports implementation of text buffers of any sort.
WiKi authors contaminated by Unix and untyped languages seem unaware that
text buffer is neither file nor string.

> How hard would it be to add support for this in Ada?

No problem at all.

> Either at language level, or as a package?

It does not make sense to provide this feature at the language level
because different applications of text buffer require different
implementations and interfaces. E.g. GTK text buffer supports mark-up and
tagging pieces of text. The buffers I use for parser don't need that, nor
they need editing support GTK text buffer has etc.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


      parent reply	other threads:[~2015-07-10 21:04 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
2015-07-10 21:04 ` Dmitry A. Kazakov [this message]
replies disabled

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