The ref keyword allows for the address of a variable to be taken.
The idea was that this is a relatively rare thing and possibly a valuable safeguard
because it forces local variables on the stack and precents optimizations.
In pratice the benefit is unclear, especially for vecs. Should vecs be automatically be marked "ref"?
Does indexing implicitly take the address? (It actually does after ExprIndex are desugared)
The ref keyword allows for the address of a variable to be taken.
The idea was that this is a relatively rare thing and possibly a valuable safeguard
because it forces local variables on the stack and precents optimizations.
In pratice the benefit is unclear, especially for vecs. Should vecs be automatically be marked "ref"?
Does indexing implicitly take the address? (It actually does after ExprIndex are desugared)