←back to thread

Go is still not good

(blog.habets.se)
644 points ustad | 1 comments | | HN request time: 0.001s | source
Show context
pjmlp ◴[] No.44983556[source]
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
    )
replies(4): >>44983559 #>>44983614 #>>44983648 #>>44986881 #
thiht ◴[] No.44983559[source]
Where's Pascal today?
replies(5): >>44983595 #>>44983604 #>>44983630 #>>44983657 #>>44989310 #
pjmlp ◴[] No.44983657[source]
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.

replies(1): >>44988665 #
1. fuzztester ◴[] No.44988665[source]
Please do. Would be interesting to read.