3 ms·
You will know ahead of time whether you're going to be rebinding a variable. The use of const is a hint to the next person reading your code, since they won't b
by jhomedall 7y ago
You will know ahead of time whether you're going to be rebinding a variable. The use of const is a hint to the next person reading your code, since they won't be privy to your thought process.
In an ideal world, const would be the default, and you would have to opt into non-const.