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.
[go to top]