performance is the reason I should use const?
No, I am saying that it would be better to use const in your code because that makes your code more resistant to user error. And even though it never really happens to you making code more resistant only has benefits.
Обсуждают сегодня