Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a bit simpler as:

  let var = {
      let mut var = ...

      var
   };
that is, you can assign the result of the block directly. That way you don't need two variables with the _ name as the second.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: