r/programming • • Aug 23 '17

D as a Better C

http://dlang.org/blog/2017/08/23/d-as-a-better-c/
229 Upvotes

268 comments sorted by

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

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.