News for hackers. Stuff that matters.
Re:Polymorphic Types in C [pdf] by uecker on Wednesday January 24, 2024 @06:15PM (#39123947)
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.

There are no comments on this comment yet.