3 ms·
> interface{} is the new void*. More like Java's Object, especially since downcasts are mandatorily runtime-checked. And the results are exactly what one could
by masklinn 10y ago
> interface{} is the new void*.
More like Java's Object, especially since downcasts are mandatorily runtime-checked. And the results are exactly what one could have expected from the first 10 years of java (if slightly subdued as Java only had a single magical blessed buildin type) given the language is in more or less the same class.
- mseepgood 10y agoMore like C#'s "object" than Java's "Object".