Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nodesocket
· 10y ago · 0 comments
Go question. Is:
if err != nil { // handle err }
Required, or can you also do:
if err { // handle err }
Comments
[–]
mnbbrown
10y ago
There's no implicit comparison (if that's the CompSci name) in Go. You have to explicitly compare (!= is required)