would type = when they didn't want a variable's value changed are:
1. they were intending to type ==
2. their pet cat/hamster/cthulhu ran across their keyboard
3. ??
lol I don't think you got my point. Use language features to adhere to your code design decisions. My example was to tell you how you can do that, you are free to nitpick on it. But how you code also shows other people your intent. Making something const tells people it's not okay to change. And they'll second guess their decisions on changing it, resulting in fewer bugs
Обсуждают сегодня