back

by uecker·2y ago·view on hn ↗
There is plenty of old C code, this is irrelevant. Equally irrelevant is that you found a library that uses a void pointer. I can show type unsafe C++ code as well, and would be equally meaningless. We talk about whether C++ is more type safe in principle and it is not.

Here is the array example: https://godbolt.org/z/P8494W3Pf Note how grotesquely bad the C++ syntax is for exactly the same type safety.