News for hackers. Stuff that matters.
Re:A Brief F# Exploration by pjerem on Friday April 09, 2021 @02:40AM (#26747359)
The most impressive feature of F# clearly is its tight integration to dotnet/C#.

It’s super easy to mix C# and F# code in the same project and it works out of the box.

This allows you, if you want it, to write your domain code in F# and your technical code in C#.

Re:A Brief F# Exploration by LandR on Friday April 09, 2021 @04:17AM (#26747950)
Do you mean same solution? I didn't think you can mix languages over the same project in C# / F#
Re:A Brief F# Exploration by pjerem on Friday April 09, 2021 @04:20AM (#26747967)
Yes, same solution, my bad.
Re:A Brief F# Exploration by tigershark on Friday April 09, 2021 @09:35AM (#26750364)
There are a lot of places where interop sucks. Other than the ones already mentioned by someone else in a previous comment there are the events that need a lot of ceremony in F# to be compatible with C#, lack of implicit conversion that in some cases renders some C# libraries unusable unless you define some explicit conversion operator and probably some other stuff that now I don’t remember. If you can work only in F# it’s a much better experience compared to mixing C# and F#.
Re:A Brief F# Exploration by pjmlp on Friday April 09, 2021 @05:08AM (#26748307)
Only on regular .NET, the UWP story is a bit different.