3 ms·
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.
by Cyph0n 9mo 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.