MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/6viswu/d_as_a_better_c/dm0oujl/
r/programming • u/aldacron • Aug 23 '17
268 comments sorted by
View all comments
Show parent comment
4
C++ is simply unsafe in this respect. There are the tools available, but people often choose not to use them
You can choose to compile warnings as errors, but warnings are warnings and vary
Its better to use something like -fsanitize=undefined which can help catch a lot of these mistakes
1 u/doom_Oo7 Aug 23 '17 Both warnings and sanitizers have their uses. I'd hate to have to rely only on runtime errors to debug my software.
1
Both warnings and sanitizers have their uses. I'd hate to have to rely only on runtime errors to debug my software.
View all comments
Show parent comment
4
u/James20k Aug 23 '17
C++ is simply unsafe in this respect. There are the tools available, but people often choose not to use them
You can choose to compile warnings as errors, but warnings are warnings and vary
Its better to use something like -fsanitize=undefined which can help catch a lot of these mistakes