4 ms·
Alternative title: "It's strange what some people expect of C#" The author seems to be trying to fit a C#-shaped peg into an unsuitably academic F# hole. C# i
by breakingcups 6y ago
Alternative title: "It's strange what some people expect of C#"
The author seems to be trying to fit a C#-shaped peg into an unsuitably academic F# hole.
C# is one of the best languages I've ever used, it's amazing how well it holds up in my (admittedly large) niche.
But one language can't be everything to everyone.
For example, the complaint that something doesn't print in a C# notebook if a semicolon is appended seems so far out there in the margins of usefulness I'm having trouble finding back the page.
- algorithmsRcool 6y agoC# is pretty great, I use it everyday. But if you've even spent significant time in F#, you return to C# land asking some of the same questions Don does. A great example is C# 8's Nullable Reference Types feature, touted as (partial) solution to the Null object references. But it isn't air tight, or even water tight. Even if you annotate everything correctly, you can still slip null refs past the compiler. But F#'s solution to the Null ref issue is much simpler, don't allow nulls at all. Force the developer to use Option<T> to express the absence of value. F# did it correctly the first time and has benefitted ever since.