Changes in new versions / Swift 5.0

// *** before: ***
let patternOld = "\\d{3}-\\d{4}"           // every backslash was doubled
let pathOld = "C:\\Users\\Alina\\Documents"
let jsonOld = "{\"name\": \"Alina\"}" // and every quote
//escaped

// *** in version 5.0: ***
let pattern = #"\d{3}-\d{4}"#
let path = #"C:\Users\Alina\Documents"#
let json = #"{"name": "Alina"}"#

// interpolation is still there, with a hash inside
let a = 2, b = 3
print(#"the sum is \#(a + b)"#)

// when the text itself contains a quote and a hash, the fence is widened
let tricky = ##"he said "#hashtag" out loud"##

// the same works with a multi-line literal