K
kuyper
Rod Pemberton wrote:
....
a) We shouldn't stop with gets(), In the long run, every feature of the
C standard that can be improved while staying within the spirit of C
should be improved, sooner or later. All that we're saying is that
removal of gets() should have been high on the list of features to be
removed from C, even way back when it was first standardized. The fact
that the standard has gone through several amendments and one full
revision since then, and gets() is still not even deprecated, is quite
hard to understand.
b) The reason why gets() should be high on the list has been repeatedly
pointed out in this thread. It is unique among all of the other
problematic features of C, in that there is essentially NO safe way to
use it (Doug's assertions to the contrary notwithstanding), and there
has always been a safer alternative.
....
Why stop with gets()?
a) We shouldn't stop with gets(), In the long run, every feature of the
C standard that can be improved while staying within the spirit of C
should be improved, sooner or later. All that we're saying is that
removal of gets() should have been high on the list of features to be
removed from C, even way back when it was first standardized. The fact
that the standard has gone through several amendments and one full
revision since then, and gets() is still not even deprecated, is quite
hard to understand.
b) The reason why gets() should be high on the list has been repeatedly
pointed out in this thread. It is unique among all of the other
problematic features of C, in that there is essentially NO safe way to
use it (Doug's assertions to the contrary notwithstanding), and there
has always been a safer alternative.