comp.lang.ada
 help / color / mirror / Atom feed
* is it possible to add multi-line raw strings (HERE-DOCUMENT) support to Ada?
@ 2015-07-10 17:00 Nasser M. Abbasi
  2015-07-10 17:18 ` David Botton
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nasser M. Abbasi @ 2015-07-10 17:00 UTC (permalink / 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







^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-10 21:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox