An Overview of the F# Programming Language
F# is a CLR (common language runtime) language created by Microsoft. It is a general purpose "functional first" programming language. F# belongs to the ML class of functional programming languages, and it was influenced by OCaml and other ML languages as well as Haskell, Scala, and Erlang.
F# supports imperative/object-oriented and functional programming styles. Syntactically, there are a number of similarities with C#, another CLR language developed by Microsoft.
F# programs are compiled to CLR bytecode, and they run on the .NET runtime. Hence, they are portable across all platforms where .NET is supported.
F# Main Features
- F# is a statically and strongly typed functional programming language.
- F# supports algebraic data types.
- F# supports generics (parametrized types).
- F# supports pattern matching.
- F# supports asynchronous programming via async/await paradigm like C#.
- F# supports LINQ like C#.
- F# supports tail calls.
- F# programs can also be compiled into Javascript.
Hello World in F#
printfn "Hello World!"
More on Hello World in F#
If you are interested in finding out more about the F# programming language, then here's an explanation of the Hello World program in F# in a little more detail:
- Hello World (F#): F# Hello World - A quick explanation
C C++ C# Clojure Crystal D Dart Erlang Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Swift Typescript