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. thiht+eh[view] [source] 2025-08-22 12:13:02
>>pjmlp+bh
Where's Pascal today?
◧◩◪
3. dardea+ni[view] [source] 2025-08-22 12:21:13
>>thiht+eh
Ouch!! Pascal's lack of popularity certainly isn't due to the fact that it supports such nice enumerated types (or sets for that matter). I think he was just pointing out that such nice things have existed (and been known to exist) for a long time and that it's odd that a new language couldn't have borrowed the feature.
[go to top]