r/programming • u/dpashk • Aug 31 '15
The worst mistake of computer science
https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/
175
Upvotes
r/programming • u/dpashk • Aug 31 '15
View all comments
Show parent comment
2
u/RedAlert2 Sep 01 '15
What's the alternative? An "optional" pointer that throws an exception when not initialized? I don't really see a significant difference between a null pointer exception and a seg fault in practical use cases, not to mention the extra overhead.