F# - Introduction and Hello World.

| Page Views: 28

F# is a general purpose programming language for .NET first implemented by Dr. Don Syme at Microsoft Research in Cambridge.

Some people say that it is the easiest and most flexible .NET language.

It can also be called "Visual F#".

F# compiler and most of its tools are open source, even if there is a F# team of engineers at Microsoft.

F# is not purely functional and instead mixes ideas from Functional Programming, Object Oriented Programming as well as Procedural Programming paradigms.

This is very advantageous in that pure functional programming is not the best approach to many type of general applications alot of developers make.

F# allows you to choose the best paradigm to use for your project.

F# is a strongly typed programming language. However, like many modern languages, it supports type inference, which is the ability of the compiler to automatically infer the types of variables from the supplied data.

F# also integrates with the .NET Framework Base Class Library(BCL), just like it's sisters C# and VB.NET.

F# is powerful in that it embraces .NET philosophy fully and allows users to do everything that the other .NET languages can do.

F# compiler can compile code for all the CLI(Common Language Infrastructure). F# is furthermore just as cross platform as the CLI will be.

Hello World

Here's the hello world program in F#:

let helloworld = "Hello World!"

// print the results
let main() =
    printfn "%A" helloworld
// call the main function


Hello World!

Best regards.

How do You Feel after reading this?

According to scientists, we humans have 8 primary innate emotions: joy, acceptance, fear, surprise, sadness, disgust, anger, and anticipation. Feel free to tell us how you feel about this article using these emotes or via the comment section.

About Me.

After completing his Software Engineering bachelors program, Oclemy(Clement Ochieng) these days is a man of two lives. At day he works for a startup in Nairobi, Kenya. At night he works tirelessly on building ProgrammingWizards TV, a tv channel for student coders and this website to help share the source code. In between he practices Meditation and Self actualization to help him keep balance. He also likes going for long solo walks to connect more with nature.


What do You Think

Previous Post