Literals/String: Difference between revisions

m
no edit summary
m (→‎{{header|Wren}}: Corrected typo.)
mNo edit summary
Line 1,393:
All strings in Lasso are Unicode strings. This means that a string can contain any of the characters available in Unicode. Lasso supports two kinds of string literals: quoted and ticked. Quoted strings can contain escape sequences, while ticked strings cannot. Both quoted and ticked string literals can contain line breaks and they both return same type of string object. [http://lassoguide.com/language/literals.html]
 
===Quoted Strings===
<lang Lasso>'I\'m a 2" string\n'
"I'm a 2\" string\n"</lang>
 
===Ticked Strings===
In the below example here \n would not be a line feed, it represents a backslash and n.
<lang Lasso>`I'm also a 2" string\n`</lang>
5

edits