Literals/String: Difference between revisions
Content added Content deleted
(→{{header|Wren}}: Updated to v0.4.0.) |
|||
Line 547: | Line 547: | ||
Strings in Dyalect are double quote delimited (and characters are single quote delimited). Both support escape codes: |
Strings in Dyalect are double quote delimited (and characters are single quote delimited). Both support escape codes: |
||
<lang |
<lang dyalect>let c = '\u0020' //a character |
||
let str = "A string\non several lines!\sAnd you can incorporate expressions: \(c)!"</lang> |
|||
Dyalect also supports multiline strings: |
|||
⚫ | |||
<lang dyalect>let long_str = <[first line |
|||
second line |
|||
third line]></lang> |
|||
⚫ | |||
=={{header|Déjà Vu}}== |
=={{header|Déjà Vu}}== |