News for hackers. Stuff that matters.
Re:Official proposal for Type Unions in C# by DaiPlusPlus on Wednesday August 07, 2024 @02:26PM (#41183964)
The benefits of F# only really apply when using a 100% F# codebase.

Try doing WinForms in F#...

Re:Official proposal for Type Unions in C# by Archelaos on Wednesday August 07, 2024 @03:06PM (#41184313)
That F# has no native GUI framework is the reason why I stick with C#. When coding something with a GUI, the majority of my development time is typically spent in the GUI layer. The rest is some more or less straightforward object relational mapping with some validation an calculations in a business layer where I use Linq to emulate functional programming in C#.

Adding F# to the game would only complicate the scenario, because I would need to connect the F# interfaces somewhere to C# anyway, requiring an additional layer of mappings in many cases.

Re:Official proposal for Type Unions in C# by neonsunset on Thursday August 08, 2024 @04:04AM (#41189194)
Re:Official proposal for Type Unions in C# by Archelaos on Thursday August 08, 2024 @08:24PM (#41197746)
It is just a wrapper around Avalonia, which is written in C#.
Re:Official proposal for Type Unions in C# by neonsunset on Thursday August 08, 2024 @09:56PM (#41198178)
It is (together with FuncUI Elmish) an extension for Avalonia to write GUI applications in F#. What difference does it make if Avalonia itself is written in C#?
Re:Official proposal for Type Unions in C# by Eji1700 on Wednesday August 07, 2024 @02:43PM (#41184092)
I mean that's mostly pretty easy bindings, but yeah it's annoying that you have to do them and feels like you're losing out on the whole damn point of using F#