Comment by 1718627440
2 days ago
Thanks, I very much don't want that. There are also people (like me) who find the C semantics pretty great.
2 days ago
Thanks, I very much don't want that. There are also people (like me) who find the C semantics pretty great.
> I very much don't want that
Why? What does it cost you?
Making something a valid program that shouldn't be. Thus, potentially creating/hiding bugs. I also explicitly invoke UB on all the code paths I do not want to be valid.
I've had the pleasure of spending many hours hunting down an uninitialized variable, as its value would change anytime I got close to it. BTW, if you really, really, want an uninitialized variable:
will do it.
4 replies →