… cause code to be less readable, hinder compiler optimization, and cause problems with parallelism. Read further on side-effects as a programming concept and then you might be able to get more insight into what I was trying to present.
Randal Kamradt Sr
I’ve been writing software since 1985, and teaching software engineering since 2005. I’m pretty sure I know what side effects are. As I said, I stopped reading after seeing the examples you used, because they are NOT showing side effects, and I hope many others saved some time in the same way.