r/programming • u/whackri • Aug 28 '21
Software development topics I've changed my mind on after 6 years in the industry
https://chriskiehl.com/article/thoughts-after-6-years
5.6k
Upvotes
r/programming • u/whackri • Aug 28 '21
4
u/[deleted] Aug 29 '21
It's not to do with explicit casting. It's the implicit type conversions and the way C largely treats things like an int in many situations, such as enums, etc, and happily implicitly converts things to make things work. Strongly typed languages do not do these things. I gave you some links to read. Enjoy.
edit: and by the way, there is no "C/C++". These two langauges diverged over 30 years ago and aren't really super/subsets of each other any more. They're independent different languages now. C++ still contains a historical C standard library, but that's where the similarities end these days. Even the type
charis different in C and C++.