Open romac opened 3 years ago
The big question here, is what we want to do with references. For now, we allowed references because we knew that mutability was prohibited. As soon as mutability comes back, we need to revise, how we deal with references.
EDIT: question answered here in #98.
Add support for local mutation (ie. no mutable references, just mutable variables/parameters within a function).
{ a; b; c }
(Block
)let mut x: i32 = 0; body
(LetVar
)vd = value
(Assignment
)expr.field = value
(FieldAssigment
)return expr
(Return
)~ => tracked here #71old(expr)
(Old
)snapshot(expr)
(Snapshot
)Start thinking about: