3 ms·
> Now we need this for C/C++, which have much legacy stuff which ought to go away for new code. In C++, certainly. In C, though, what do you not do in C23 that
by lelanthran 3mo ago
> Now we need this for C/C++, which have much legacy stuff which ought to go away for new code.
In C++, certainly. In C, though, what do you not do in C23 that you was doing in C99?
- bashauma 3mo agoIIRC gets() ?
- lelanthran 3mo agoI don't think that counts - fgets (the safer replacement) was already in C89. "Modern C" by 1999 already included "Don't use gets()"
- Animats 3mo agoThe key concept of an "edition" is that you can deprecate stuff. "gets()" should have been pulled from the standard library around 1990 or so, along with "strcat" and its frenemies.