3 ms·
Casting to and from void pointers is very much not generics, and is in fact exactly what you have to do in Go (casting to and from `interface {}`) or pre-generi
by masklinn 12y ago
Casting to and from void pointers is very much not generics, and is in fact exactly what you have to do in Go (casting to and from `interface {}`) or pre-generics Java (casting to and from `Object`).
Although at least in Go and Java the downcast is checked and memory-safe, not so in C.