News for hackers. Stuff that matters.
Re:Var and val in Java? by heinrich5991 on Saturday March 26, 2016 @04:20PM (#11367285)
Depends on what you assign to these variables.

    fn main() {
        let (a, b, c);
        a = true;
        b = [1];
        c = "foobar";
    }
https://play.rust-lang.org/?gist=ebedd0cd5b6707410aff&versio...
Re:Var and val in Java? by gravypod on Saturday March 26, 2016 @05:32PM (#11367551)
That's my problem. YOU can't tell. You cannot just look and see what is going on.
Re:Var and val in Java? by masklinn on Saturday March 26, 2016 @06:11PM (#11367689)
Sure you can, it's pretty clear that a is a boolean, b is an array on the stack and c is a string. If the code is so complex you can't eyeball a local scope you probably have bigger problems than whatever the type of the variables are, and if you get one wrong the compiler will yell at you.