You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, constants are implemented as final statics. However, it may make sense to actually distinguish this. For example, we could have:
constant int x = 1
static int y = 2
final static int z = 3
Its not clear to me what the value of a final static would be. However, the key difference is that constants would not be inlined, and would not be usable in certain contexts. Observe that this distinction follows Rust.
The text was updated successfully, but these errors were encountered:
(see also RFC#0008)
Currently, constants are implemented as
final
statics. However, it may make sense to actually distinguish this. For example, we could have:Its not clear to me what the value of a final static would be. However, the key difference is that constants would not be inlined, and would not be usable in certain contexts. Observe that this distinction follows Rust.
The text was updated successfully, but these errors were encountered: