comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: is it possible to add multi-line raw strings (HERE-DOCUMENT) support to Ada?
Date: Fri, 10 Jul 2015 12:00:52 -0500
Date: 2015-07-10T12:00:52-05:00	[thread overview]
Message-ID: <mnoto0$4u5$1@speranza.aioe.org> (raw)

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.

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

The rosseta entry is http://rosettacode.org/wiki/Here_document

One can see the Ada entry there is not a true multi-line
raw string as one needs to add &"" at each line. Compare
that to the Python or Perl.

 From the Ada entry:

"Ada has neither heredocs nor multiline strings.
A workaround is to use containers of strings: "

C++-11 also added support for multi-line raw strings.
Few examples in Ruby, Perl, Python and C++11 showing
how this feature is used are http://12000.org/my_notes/here_document/index.htm

It is these kinds of practical features that make computer
Languages useful.

How hard would it be to add support for this in Ada?
Either at language level, or as a package?

--Nasser







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

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