Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's possible to fix this in application code with a Primitive<T> or NoDefault<T> wrapper that acts like a T, except doesn't have a default constructor. Use Primitive<int> wherever you'd use int that it matters (e.g. struct fields), and leaving it uninitialized will be a compiler error.


Yea no. I'm not gonna do that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: