My advice on implementing stuff in C:
My advice on implementing stuff in C:
Posted Oct 17, 2010 23:47 UTC (Sun) by foom (subscriber, #14868)In reply to: My advice on implementing stuff in C: by wahern
Parent article: Russell: On C Library Implementation
> And yet in actual code I see casting as far more prevalent in C++ than in C
I suspect this is simply because you *can* see the casting in C++: a "static_cast<Whatever *>(x)" sticks out like a sore thumb, vs the almost-invisible C-style parenthesized type expression.
