Skip to content

New useful macro to std , mut! #2716

Closed
Closed
@tomerze

Description

@tomerze

Recently I came across this amazing crate on crates.io.

Simple useful and reads well.

I suggest making it part of the standard library.

But to avoid confusion with other languages change the macro to mut!.
Example:

mut! { 
    a = 5,
    b = 3,
    c = “hello”
}

Is much more readable than
let (mut a, mut b, mut c) = (5, 3, ”hello”);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions