2 ms·
Don't forget that using GTK with C is basically switching to a dynamically-typed language too. Everything is void pointers so you can pass various kinds of GTK
by hajile 5y ago
Don't forget that using GTK with C is basically switching to a dynamically-typed language too.
Everything is void pointers so you can pass various kinds of GTK structs around. This leaves you either checking the component type constantly or running the risk of something going very wrong.
With Rust, you can test against the specific types being passed around giving you the best of both worlds where you have static typing that is missing in C and you have the performance of those type checks compiling away.