3 ms·
If Pascal doesn't have required exhaustive pattern matching, it's no better than Go or C# in this regard.
by jen20 1y ago
If Pascal doesn't have required exhaustive pattern matching, it's no better than Go or C# in this regard.
- pjmlp 1y agoGo is the one being discussed as ignoring history. C# thankfully was designed by someone that appreciates type systems, maybe you should revisit it.
- jen20 1y agoNot enough to add sum types or exhaustive pattern matching... now F# - that was appreciated by someone that appreciates type systems.
- frou_dh 1y agoDoes Pascal's break down like this Go does? func f(x StatusCode) { } f(728347) // There's no such status. Whateverz, no compile error.
- Mawr 1y agoHow often do you pass literals into your functions? f(728347) // There's no such status. Whateverz, no compile error. a := 728347 f(a) // Compile error.