logoalt Hacker News

Cyph0nyesterday at 1:47 PM0 repliesview on HN

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.