4 ms·
Difference between any and object, void* and interface{} is you can't really do anything with the second. Sure you can store something on an "object" type but y
by shultays 5y ago
Difference between any and object, void* and interface{} is you can't really do anything with the second. Sure you can store something on an "object" type but you need to cast it back to do anything which discourages usage of it (and add runtime checks, usually)
While in python you can mark something as "any" and continue using it as is.