Skip to content

Decide on ref sematics #49

Description

@robertmuth

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions