Skip to content

Comment on Get Started with F# as a C# developerparent

Comments

can I use this for 'real life' code as part of an existing C# desktop application .. without tons of hassle

Yes. Your standard OOP features like inheriting from C# classes, implementing interfaces, etc are supported natively in F#. The main hassle in being C#-compatible is exposing an external OOP api with only .NET types and interfaces instead of standard F# types. This means, for example, exposing `seq` (`IEnumerable`) instead of `list` (`Microsoft.FSharp.Collections.List`) or using the struct-tuple construct in F# 4.1 so C# 7 can access it.

good samples of real life application code

No personal recommendations but have you seen https://github.com/fsprojects/awesome-fsharp

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.