2 ms·
> If you argue that C has static types, then I guess you're probably right. C (like C++) is both statically and weakly typed; strong and static typing are orth
by dragonwriter 8y ago
> If you argue that C has static types, then I guess you're probably right.
C (like C++) is both statically and weakly typed; strong and static typing are orthogonal axes (dynamic but strongly typed languages are common.) If you mean strong and static when you say static, you need to take C++ off your list.
- sanderjd 8y agoYeah, I kind of wondered about that as I was writing my comment, seems like a fair point.
- navaati 8y agoNo, it's (mostly) not about that. It's about C not having any generics or similar things (like C++ templates), so you need to fall back way more often on void*. So on that axis Go is roughly as statically typed as C, albeit more strongly typed. On the other hand C++ is more statically typed than C, but is about as strongly typed (afaik).