3 ms·
Though in Go, you can always use reflection to get back the concrete type in an `interface{}` type. In C, `void *` is pretty much all you get. This causes far m
by bjeanes 13y ago
Though in Go, you can always use reflection to get back the concrete type in an `interface{}` type. In C, `void *` is pretty much all you get. This causes far more subtle bugs, IMO.
Source: someone who hasn't done much C and only a little bit of Go. So take it with a grain of salt.
- tomp 13y agoIn Cello, however, all types are supposed to start with a type declaration, so that you can get the type back at runtime.