4 ms·
Agreed. The article that opened my eyes to this shows (IMO) a serious deficiency in C#'s type system compared to F#'s, which includes the concept of tagged-uni
by Mouse47 7y ago
Agreed. The article that opened my eyes to this shows (IMO) a serious deficiency in C#'s type system compared to F#'s, which includes the concept of tagged-union types. It shows a very simple shopping cart program that can't be modeled cleanly in c# without using the visitor pattern....which is difficult to read IMO.
https://fsharpforfunandprofit.com/csharp/union-types-in-csharp.html https://fsharpforfunandprofit.com/csharp/union-types-in-csha...