Tuesday, 13 August 2013

Hello world in F#

Lets open our VS studio and open new F# console application project.
I am writing this example based of my C# knowledge

  1. Text starting with // are comments
  2. The are no {}  as indenting does the same thing.. neeter code love it

type following

// same as using
open System

// write to screen same as Console.Write("Hello world")
printfn "Hello world"

// waits for any key to be pressed

Hit F5 and you have nice console application