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
We still need to discuss some syntax for this. Maybe val/var as in Kotlin or so. Or simply const like here:
func foo() {
const x: Int = 6
x = 5 # not allowed, because = needs a reference to the target
}
These variables are then not alloca'ed as a Ref[T] but directly as T.
Then, all enforcements follow automatically as local variables are not special in any way currently.
The text was updated successfully, but these errors were encountered:
We still need to discuss some syntax for this. Maybe
val
/var
as in Kotlin or so. Or simplyconst
like here:These variables are then not alloca'ed as a
Ref[T]
but directly asT
.Then, all enforcements follow automatically as local variables are not special in any way currently.
The text was updated successfully, but these errors were encountered: