4 ms·
There are some examples which (IMHO) are not the best. First, global variables changed silently is a tempting yet very bad idea for software engineering. Yes,
by stared 5y ago
There are some examples which (IMHO) are not the best.
First, global variables changed silently is a tempting yet very bad idea for software engineering. Yes, we are used to them, but there are unsafe. You can easily create a mutable variable in the main, then explicitly change it with a function. So, no features are lost, but it enforces clarity and explicity.
Second, I don't find initialization with zeros to be a huge problem. I got surprised it got mentioned at all.