P.S. given that many functions return a tuple (pointer, error) where the
pointer is nil if error is not and vice versa, I actually also doubt the
usefulness of the Optional type. On the other hand, that makes behavioral
contracts (static or run-time) more relevant.
Le mar. 27 nov. 2018 à 18:05, Marko Ristin-Kaufmann <marko.ris...@gmail.com>
a écrit :

> What is the zero value of a
>> non-optional pointer? (If I were doing a clean-slate Go, I'd probably
>> leave zero-values out, but I'm not).
>>
>
> I haven't really spent much thought about it. I suppose that would also
> fall in the realm of static or run-time checks of behavioral contracts.
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to