Interpolation Expression Sequence (IES): Will Delimited Strings Ever Be Supported?
Dejan Lekic
dejan.lekic at gmail.com
Fri Aug 16 12:55:42 UTC 2024
After talking to Adam on IRC, he pointed out that i`` works, so I
was wrong apparently. The following works:
```
string title = "D roX";
auto html = i`
<!DOCTYPE html>
<html>
<head>
<title>$(title)</title>
<link rel = "stylesheet" href = "style.css">
</head>
<body>
`;
```
iq{} does not work because what is inside is not valid D code.
i"" would work if you escaped all the double-quotes which
obviously you do not want to do, so i`` to the rescue!
More information about the Digitalmars-d
mailing list