Comment by Cyph0n
10 hours ago
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.
10 hours ago
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.
No comments yet
Contribute on Hacker News ↗