3 ms·
Interesting. Why not simply overload the meaning of const based on rvalue?
Interesting. Why not simply overload the meaning of const based on rvalue?
Like in C++, right? The compiler can decide whether it's a compile-time or run-time constant.
Kotlin's "const" corresponds directly to Java's "const", so my guess is that they don't want to burn bridges with Java where there's no substantial benefit.