2043
you are viewing a single comment's thread
view the rest of the comments
[-] qaz@lemmy.world 6 points 1 year ago
if ok {
    return true
} else {
    return false
}

Why?

[-] nickwitha_k@lemmy.sdf.org 4 points 1 year ago

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

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

Programmer Humor

32054 readers
1687 users here now

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

Rules:

founded 5 years ago
MODERATORS