r/ProgrammerHumor 17h ago

Meme iHateThisPassiveAgressiveBehaviourRuby

Post image
2.4k Upvotes

264 comments sorted by

View all comments

6

u/Single-Virus4935 17h ago

Golang: "wie dont do that here" meme

3

u/deceze 17h ago

Wie jetzt, warum nicht?

1

u/Single-Virus4935 14h ago

Golang konvertiert keine typen implizit.

Du kannst einem int keinen int32 zuweisen ohne explizit zu casten int(i).

Boolean conversions gibt es gar nicht:

```

i := 1

if i {

fmt.Println("Hello, 世界")

}

}

//

./prog.go:8:5: non-boolean condition in if statement

```

```

i := 1

if bool(i) {

fmt.Println("Hello, 世界")

}

// ./prog.go:8:10: cannot convert i (variable of type int) to type bool

```