News for hackers. Stuff that matters.
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...