Fsharp: At Sign @ String (verbatim)
At Sign @ String
Everything is verbatim, except, two adjacent QUOTATION MARK means a single QUOTATION MARK.
Syntax
Syntax is an “at sign” in front of quote. e.g.
@"abc"
or
@"""abc"""
// to include a quote, double it let xx = @"said: ""yes""." printfn "%s" xx // said: "yes".
Example. multiple lines
// can be multiple lines let xx = @"aa bb" printfn "%s" xx (* aa bb *)
Example. backslash has no special meaning
// backslash has no special meaning let xx = @"aa\nbb" printfn "%s" xx // aa\nbb let zz = @"aa\ bb" printfn "%s" zz (* aa\ bb *)
Two adjacent QUOTATION MARKs means single
// two QUOTATION MARKs means single let zz = @"he said: ""yes""." printfn "%s" zz // he said: "yes".
Example. on triple quoted string
// at sign can be placed in front of triple quoted string let xx = @"""abc""" printfn "%s" xx // "abc" // two QUOTATION MARKs means single let zz = @"""ab""cd""" printfn "%s" zz // "ab"cd"