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
let main argv =
    let Friend's  = "Test string"
    let ret = Console.ReadLine()

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply


Interesting BlogPosts to read

C# Program to swap two numbers
Introduction This program in C# developed using .NET Framework and Visual Studio  will demonstrate ...
Functional Conf 2014 - Asia's Premier Functional Programming Conference
Functional Conf 2014 , one of the Asia's premier and first functional programming conference is sche...
Declaring Variables in F#
To learn any new programming language , it is necessary to learn the basics first which includes how...