Monday, February 6, 2012

F# 2.0 with Visual Studio 2010

F# is a functional programming language initially developed by Don Syme now developed by Microsoft. Though it is inherently functional in nature it supports imperative and Object Oriented programming.

It is yet another .Net language ie. it emits IL and an excellent starting point for .Net professionals to explore functional programming.

F# supports Read Eval Print Loop (REPL) which makes it easy to learn a language.

F# Project in Visual Studio

 F# is included in Visual Studio along with C#, VB .Net and Visual C++.

I am starting an F# application and creating a conventional Console Application.

open System

Console.WriteLine "Shalvin"

open in F#  is equivalent to using statement in C#
For using REPL highlight the code segment and press Alt + Enter. You can see the output in the F# Interactive at the bottom of the IDE.

No comments:

Post a Comment