Hacker News new | ask | show | jobs
by NateDad 3133 days ago
My 7 years of C++ and 7 yesterday of C# and 5 years of go agree with you. Many more nil pointer exceptions in the former and almost none in the later in similar size (large) codebases.
2 comments

Most of my experience is in C#, and NullReferenceException is, by far, the most frequent exception that ever happens. Curious about if your experience with it is different, and if it is, how.
Not sure if you're talking to me. I was saying that NullReferenceExceptions happen a lot more in C# than nil pointer panics in Go.
My 6 years of C++ and 8 years of C# and 10 years of Java and 5 years of Go agree with you both.