ANN: `var!` is a macro for declaring multiple mutable variables at once


#1

Prompted by http://www.reddit.com/r/rust/comments/2w3t29/so_i_found_out_that_nim_uses_two_keywords_for/ I wrote a macro for creating several mutable variables at once: http://huonw.github.io/var/var/

#[macro_use] extern crate var;

var! {
    a = 1,
    b: &str = "foo",
    c = 3.0,
}

a += 1;
b = "bar";
c *= 7.0;

(Discussion on /r/rust.)


Category suggestions