Better HN
topnewbestaskshowjobs
Log inSign up

seanpfeifer

3 karma · joined Nov 25, 2016 (10y ago) · 1 submissions

https://www.linkedin.com/in/seanpfeifer
Submissions

comment 9y ago · link · parent

This is possible in Go right now. Use "if thing, err := blah(); err != nil { ... }".

This is common for things like map access. See an example here https://play.golang.org/p/P3k5tgFLd2