| ▲ | raggi 4 hours ago | |
there are no good reasons we don't do this in the standards themselves, C, C++, and POSIX should all be working on editions that add safer APIs and mark unsafe APIs as deprecated, to start a long term migration. we know how to do this, we've had a lot of success with this. there are real engineering concerns, sure, but they're not reasons to not do it. compilers and library chains can retain support for less safe variants for plenty of time. | ||
| ▲ | sparkie 3 minutes ago | parent | next [-] | |
The C charter has a rule of "no invention". Anything needs to be demonstrated and used in practice before being included in the standard. The standard is only meant to codify existing practices, not introduce new ideas. It's up to compiler developers to ship first, standardize later. | ||
| ▲ | AlotOfReading 4 hours ago | parent | prev | next [-] | |
The reason this wasn't done by the standards committees is that they spent decades refusing to admit there was even a problem they could help fix. And if there was a problem, it was easily avoided by just writing better code. And if writing better code wasn't enough, well it was certainly too expensive to provide as a debug option. And if it wasn't too expensive to provide as a debug option, the implementors should really lead the way first. And on and on. The C committee at least seems to get it now. The C++ committee still doesn't, led in large part by Bjarne. | ||
| ▲ | zbentley 4 hours ago | parent | prev | next [-] | |
There are only two kinds of standards: ones that prioritize stability and backwards compatibility over usefulness and security, and ones nobody uses. | ||
| ▲ | anthk an hour ago | parent | prev [-] | |
C and POSIX aren't related to C++ at all. | ||