|
|
|
|
|
by uecker
46 days ago
|
|
C does not have weak type safety. Nobody forces you to use void pointers, and glib is just bad in this way by not providing a safe abstraction (and why is it called gpointer?). It is entirely possible to write type safe code in C. It is also possible to write unsafe code, but this is a choice. |
|
Although GLib indeed has some rather weird design/taste.
> and why is it called gpointer?
Hey, they do have type-generating facilities! They just don't use them to template their containers. It's a very, very old library, it predates C99.