What is the difference between a string prepended by an @ and a triple quoted string?

For example, let test = @"abc/def" vs let test = """abc/def"""?

https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/strings

this doc explains this question very clearly

@Nelkins Basically, the only difference is how double-quotes are treated. A triple-quoted string allows you to embed double-quotes as exact literals, no need to do the double-up escape.

let atString = @"Some ""quoted"" text"
let tripleString = """Some "quoted" text"""
3 Likes