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

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Hey, wait!Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.