Skip to content

'var' as alias for 'let mut' #2304

@pannous

Description

@pannous

Now that rust compiles to wasm it would be nice to play to the Web community.

Thus a shortcut

var x=1;

for

let mut x=1;

would not only safe four keystrokes in each instance but also be nicer on the eyes and easier to grasp for newcomers. var for 'variable' already entails the concept of 'mutability', so it is a fit name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions