News for hackers. Stuff that matters.
Re:John Carmack on Inlined Code by pshc on Friday September 26, 2014 @06:04PM (#8375150)
It's idiomatic in Rust, even:

   let result = {
       let b = foo(a);
       let mut c = b.see();
       while (c) {
         c.frob();
       }
       baz(c)
   };
Re:John Carmack on Inlined Code by masklinn on Saturday September 27, 2014 @03:37AM (#8376369)
Although the style described above will also work just fine:

    let result;
    {
        let b = foo(a);
        let mut c = b.see();
        while (c) {
          c.frob();
        }
        result = baz(c);
    }