News for hackers. Stuff that matters.
Re:F# is the best coding language today by jarcane on Friday July 09, 2021 @11:55AM (#27785016)
IMO C# is picking up a lot of small things that make it incrementally better than it was before, and at some point it's not worth the hassle to go to F#. F# features are gradually added to C# so C# developers have time to pick them up as well.

You cannot add the best features of F# to C# without making it a fundamentally different language. You're not gonna make C# into a type-inferred FP language by bolting on some random half-understood bits anymore than you can make a cat jump better by gluing rabbit legs onto it.

It's the core paradigm and philosophy that makes it great, and if anything, what I've seen hold it back from its potential is insufficient support requiring essentially importing C# idioms into the language just to interop with existing libraries.

Re:F# is the best coding language today by paavohtl on Friday July 09, 2021 @12:05PM (#27785135)
Absolutely - F# is greater than the sum of its features. While it's good that C# keeps getting features inspired by F#, they fundamentally won't change the way it's written. The actual experience of using global type inference, immutability, sum types, currying (& partial application) and well thought out exhaustive pattern matching cannot be replicated by bolting them onto a fundamentally imperative OOP language.
Re:F# is the best coding language today by tasogare on Friday July 09, 2021 @01:45PM (#27786349)
The lack of sum types is the main offender that blocks any C# code is evee be even remotely close to F#.
Re:F# is the best coding language today by johnb1984 on Friday July 09, 2021 @02:15PM (#27786718)
Lack of a "unit" type is also a huge issue. e.g. need to create Task<'T> and non-generic Task, or Action<'T> and Func<'T1, 'T2> due to "Void" not being an actual type...
Re:F# is the best coding language today by reader_mode on Friday July 09, 2021 @12:08PM (#27785168)
Meh - it's not really about "best features" or whatever. C# is getting expressive enough where it's not a pain point and it has widespread adoption and is platform default = no reason to go F# unless you're looking for a FP language.