memesearch
If Err Nil Really That Bad

If Err Nil Really That Bad

Download Find similar pictures
Text on the meme
> Asks if 'if err != nil' is really that bad > Screenshot example shows accidental fallthrough from error case to success case Do we really need to discuss further? Kai Fall @kai_fall · 12 ч. is `if err != nil` really that bad? match atoi "6942" with | Error -> Printf.printf "failed to parse int\n" | Ok n -> Printf.printf "hello %d\n" n GO n, err := atoi("6942") if err != nil { fmt.Printf("failed to parse int\n") } fmt.Printf("hello %d\n", n)
What it means

The meme presents a sarcastic post asking whether Go's `if err != nil` pattern is really so bad. The accompanying example shows an error branch followed by a success print, making the criticism self-evident: the code continues after the error instead of stopping, so the joke is aimed at careless error handling and accidental fallthrough. EN: The meme presents a sarcastic post asking whether Go's `if err != nil` pattern is really so bad. The accompanying example shows an error branch followed by a success print, making the criticism self-evident: the code continues after the error instead of stopping, so the joke is aimed at careless error handling and accidental fallthrough.

Objects
Tags
Source
Type
image
Size
681×800 · 70.3 KiB
Mood
sarcastic
Language
en
Added