torsdag 16 december 2021 kl. 23:40:09 UTC+1 skrev Johan Bolmsjö:

>
> My workaround has been to create a dummy variable, zeroValue in the 
> following example. I'm wondering if this is how to solve this problem or if 
> there is a better way.
>
>
I  realized I should have read the generics proposal before asking this 
question. My current workaround is mentioned together with some possible 
future improvements. At the time it seems to be idiomatic code. Sorry for 
the noise.
 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/eebade7f-7168-458f-adcc-8cc4875a652en%40googlegroups.com.

Reply via email to