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. pjmlp+Oi[view] [source] 2025-08-22 12:24:45
>>thiht+eh
Being used by these folks, https://www.embarcadero.com/

If you prefer, I can provide the same example in C, C++, D, Java, C#, Scala, Kotlin, Swift, Rust, Nim, Zig, Odin.

◧◩◪◨
4. fuzzte+AB1[view] [source] 2025-08-22 19:16:21
>>pjmlp+Oi
Please do. Would be interesting to read.
[go to top]