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

The whole advantage of UB is that this places less restraints on what the optimizer can do. If I say something does not need to be initialized I am giving the optimizer the freedom to do more!


So what's the issue with introducing explicit syntax to do exactly that if you want to? A safe default does not preclude you from opting out of safety with a bit of syntax or perhaps a compiler flag.


The issue is that the language was already designed with the old behavior.




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

Search: