- This topic has 0 replies, 1 voice, and was last updated 11 years, 4 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- The forum ‘Internals & Enhancements’ is closed to new topics and replies.
Integrated Application Platform
Integrated Application Platform › Forums › Internals & Enhancements › Backquoted "raw" string literals
Another small new feature – you can now write strings in backquotes (aka backtick or grave) e.g. `…`
Backquoted strings are not processed at all i.e. backslashes are not treated specially. They can contain any character except for a backquote.
This is useful when writing regular expressions or Windows file paths, so you don’t have to double up backslashes.
Display (and Print) will show strings as backquoted if they don’t contain a backquote and they do contain a backslash and the contents are all printable characters.
Other languages (like D and Scala) have similar ways to write “raw” string literals.