2059
submitted 2 years ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 6 points 2 years ago
if ok {
    return true
} else {
    return false
}

Why?

[-] [email protected] 4 points 2 years ago

Idiomatic Go way of checking for the presence of a key in a map.

this post was submitted on 01 Sep 2023
2059 points (98.2% liked)

Programmer Humor

36796 readers
286 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS