Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Eh, it’s not uncommon to need this distinction. The Go convention is to return (res *MyStruct, ok bool).

An Option type is a cleaner representation.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: