That way (a) does not allow comment out a declaration *easily* and (b)
it is not useful for more than 10 or 20 multiple declarations.
static (
a = 1;
//b = 35;
c = 120;
)
so the code will always be clearer
vs
static a=1, /*b=35,*/ c=120;
El 16/04/13 11:33, Alex Bradbury escribió:
On 16 April 2013 11:28, John Mija <jon...@proinbox.com> wrote:
Since the low level libraries usually have many constants, it would be great
whether multiple constants and variables could be grouped using parenthesis.
Now:
static a = 1;
static b = 35;
static c = 120;
Using parenthesis:
static (
a = 1;
b = 35;
c = 120;
)
Wouldn't `static a=1, b=35, c=120;` make more sense and match `let
a=1, b=25, c=120;'?
Alex
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev