Skip to content
All curated reading →

Curated / F#

What are F# use cases?

r/dotnet Subreddit · Published February 5, 2024

Illustrator_Forsaken, Reddit user

Summary

In a February 2024 r/dotnet thread discussing F# use cases, practitioners highlighted its discriminated unions and type system for domain modeling, particularly in representing tree-like structures such as ASTs. Proponents, including user dr_bbr, cited migrating from VB.NET to F# backends for enhanced null safety and compile-time SQL schema validation via type providers, reducing runtime errors. Critics argued that equivalent null-safety and validation can be achieved in C# with nullable reference types and build tasks, while noting F#'s steeper learning curve and debugging challenges in functional pipelines. Several commenters reported using F# successfully for business logic and complex data transformation layers, emphasizing improved testability and reduced cognitive load from immutable data flows. The discussion concluded without a consensus on superiority, but reflected ongoing interest in F# for domains prioritizing correctness and expressiveness over broad ecosystem integration.