Logo

Programming-Idioms

History of Idiom 48 > diff from v22 to v23

Edit summary for version 23 by BBaz:
New D implementation by user [BBaz]

Version 22

2016-05-29, 01:22:53

Version 23

2016-08-13, 22:05:27

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Extra Keywords
multiline raw
Extra Keywords
multiline raw
Code
auto s = ` line1
line2
line3`;

auto r = r" line1
line2
line3`;
Comments bubble
when backticks are used (or r), escapes sequences are ignored.