zlacker

[parent] [thread] 6 comments
1. jen20+(OP)[view] [source] 2025-08-22 16:58:23
If Pascal doesn't have required exhaustive pattern matching, it's no better than Go or C# in this regard.
replies(2): >>pjmlp+K3 >>frou_d+Rs
2. pjmlp+K3[view] [source] 2025-08-22 17:16:57
>>jen20+(OP)
Go is the one being discussed as ignoring history.

C# thankfully was designed by someone that appreciates type systems, maybe you should revisit it.

replies(1): >>jen20+59
◧◩
3. jen20+59[view] [source] [discussion] 2025-08-22 17:47:40
>>pjmlp+K3
Not enough to add sum types or exhaustive pattern matching... now F# - that was appreciated by someone that appreciates type systems.
4. frou_d+Rs[view] [source] 2025-08-22 19:16:33
>>jen20+(OP)
Does Pascal's break down like this Go does?

    func f(x StatusCode) {
    }

    f(728347) // There's no such status. Whateverz, no compile error.
replies(1): >>Mawr+EZ
◧◩
5. Mawr+EZ[view] [source] [discussion] 2025-08-22 22:31:31
>>frou_d+Rs
How 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.
replies(1): >>frou_d+3Q1
◧◩◪
6. frou_d+3Q1[view] [source] [discussion] 2025-08-23 07:09:42
>>Mawr+EZ
The nature of Swiss cheese is that it can't be all hole and there has to be some non-hole too
replies(1): >>jen20+nn2
◧◩◪◨
7. jen20+nn2[view] [source] [discussion] 2025-08-23 13:55:57
>>frou_d+3Q1
Raclette is Swiss cheese without holes. That is proper ADT in this anaology.
[go to top]