3 ms·
This may be the "computing industry sentence of the year", if they had an award for "sentence of the year", which I'm sure they don't. Whoever they are. while
by hoodoof 9y ago
This may be the "computing industry sentence of the year", if they had an award for "sentence of the year", which I'm sure they don't. Whoever they are.
while nil is assigned to t2, when t2 is passed to factory it is “boxed” into an variable of type P; an interface. Thus, thing.P does not equal nil because while the value of P was nil, its concrete type was *T.
- _pmf_ 9y ago"Go should stay simple, it does not need generics."
- concede_pluto 9y agoThis is required to support one of the most peculiar features I've ever seen--method dispatch on the concrete type of object that isn't there.
- wvh 9y agoThis is where language design morphs into philosophy...