Variable Name with apostrophe in F#

Did you know ? . We can create a variable with the name containing apostrophe (‘) in F# .

Variable Name with apostrophe in F#

Below is a code snippet demonstrating how to have  apostrophe in a F# variable name.

open System
[<EntryPoint>]
let main argv =
    let Friend's  = "Test string"
    Console.WriteLine(Friend's)
    let ret = Console.ReadLine()
    0

Leave a Reply

Your email address will not be published. Required fields are marked *