https://kotlinlang.org logo
m

marstran

10/17/2017, 11:25 AM
I don't really know the details here. I guess it could be optimized by the compiler, but by adding
const
, you are guaranteed that it will optimized.