zlacker

[return to "Go is still not good"]
1. pjmlp+bh[view] [source] 2025-08-22 12:12:26
>>ustad+(OP)
As usual, lets revisit something that Pascal could do in 1976,

    type

    StatusCodes = (Success, Ongoing, Done)
Go in 2025,

    type StatusCodes int

    const (
        Success StatusCodes = iota
        Ongoing
        Done
    )
◧◩
2. jen20+O81[view] [source] 2025-08-22 16:58:23
>>pjmlp+bh
If Pascal doesn't have required exhaustive pattern matching, it's no better than Go or C# in this regard.
◧◩◪
3. frou_d+FB1[view] [source] 2025-08-22 19:16:33
>>jen20+O81
Does Pascal's break down like this Go does?

    func f(x StatusCode) {
    }

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