I'm an old school coder. As with everything I imagine underlying bytes in the int and a constructor being just a function call overwriting them (if told so). Assuming no optimization, of course. And that int is left unintialized by default.
What threw me off was structs were being initialized but not the ints next to them. I also had some code use {} in part of the function/codebase and not in the other, so vars were sometimes not initialized and added more to my confusion. But that was years ago, before I ever had a blog
View all comments
Show parent comment
2
u/levodelellis May 04 '26
Good! You shouldn't!
I'm met very few people who understood when things initialized, how did you figure it out? Was it the hard way?