Re:Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers
by cyphar on Sunday September 04, 2016 @09:45PM
(#12427627)
You could (just use an interface). However, it would be a pain to use because Go doesn't have generics (if a type X implements the Maybe interface, it is not true that []X can be casted to []Maybe). So you would have to always make temporary slices to copy all of your Xs into.
[ Parent
| on HN ]
There are no comments on this comment yet.