3 ms·
Every good programmer needs to understand pointers and aliasing at this level. And maybe it would convince some of them what a tremendous waste of time it is to
by prodigal_erik 15y ago
Every good programmer needs to understand pointers and aliasing at this level. And maybe it would convince some of them what a tremendous waste of time it is to try doing reliable and productive work using raw pointers.
- shadowfox 15y agoWhat are you trying to imply here?
- prodigal_erik 15y agoIf more people were aware of how many obscure and subtle ways C code can be seriously wrong but look fine, we wouldn't have so many apps with security flaws that blow up randomly, because people wouldn't be choosing C so often. This is a very well-written example of the kind of pitfalls that ought to be driving people to saner runtimes, which I wish someone had convinced me of before I wasted years trying to do reliable work in C and then C++.