talira

F# empowers everyone to write succinct, robust and performant code

open sourceMITfree

F# is a functional-first, statically typed language for .NET that is expression-based and immutable by default, with type inference, pattern matching, discriminated unions and async programming, plus full support for objects. It runs on .NET and works alongside C# in mixed-language solutions, and its compiler, FSharp.Core library and F# Interactive scripting tool ship with the .NET SDK; libraries come from NuGet. F# 11 shipped with .NET 11. Developed by Microsoft and the community under the MIT licence, with the F# Software Foundation supporting the community.

Libraries for C# and .NET

View 40 more

Browse all of them: 51 libraries, 17 frameworks, 127 APIs.

Problems it solves

  • model my business domain so invalid states can't even compile
  • a functional language that still lets me use every .NET library and call C# code
  • my C# code is full of null checks and mutable state bugs and I want something more concise
  • which language should I use for data analysis scripts with type safety on .NET
  • write concise code that reads like Python but catches errors at compile time
  • explore data interactively in a notebook or script with a statically typed language
  • pattern match on complex data instead of writing chains of if statements

Features

  • immutable by default
  • type inference and automatic generalization
  • pattern matching
  • discriminated unions and records
  • async programming
  • object-oriented members and interfaces
  • F# Interactive scripting with #r nuget references
  • units of measure

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what F# does.

  1. C# A modern, open-source programming language
  2. Scala Expressive, scalable, safe
  3. Haskell Enjoy long-term maintainable software you can rely on
  4. Clojure A robust, practical, and fast programming language
  5. Python A programming language that lets you work quickly and integrate systems more effectively
  6. OCaml An industrial-strength functional programming language with an emphasis on expressiveness and safety

Compare F# with the top 3