←back to thread

Go is still not good

(blog.habets.se)
644 points ustad | 3 comments | | HN request time: 0.017s | 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 #
813ac4312b25c[dead post] ◴[] No.44983614[source]
[flagged]
1. pjmlp ◴[] No.44983683[source]
Rust did not exist in 1976.
replies(1): >>44986925 #
2. jen20 ◴[] No.44986925[source]
ML did, however (1973), and had..... sum types!
replies(1): >>44987126 #
3. pjmlp ◴[] No.44987126[source]
Yes, and still doesn't change the fact that Go messed up.