2 ms·
With "const" you still need to rely on devs being good citizens since const can be trivially casted away. I've been programming in C for 25+ years. const is cl
by icedchai 7y ago
With "const" you still need to rely on devs being good citizens since const can be trivially casted away.
I've been programming in C for 25+ years. const is clutter.
- marcinjachymiak 7y agoDon't let consts get "trivially" casted away in code review. If something is no longer const than remove the keyword, or find another way to solve your problem
- will4274 7y ago> const can be trivially casted away. Yes, types can be trivially casted away too. That's not a reason to use void* everywhere.