1. 64

From the NYC rust Meetup. http://meetu.ps/c/2vvjK/997dR/a


  2. 16

    The latest versions of rust have the dbg! macro, which also prints out the context of the expression and is easier to type and remember than the println syntax.

    1. 13
      1. 4

        This is one of the things I got really used to in Javascript that I wish I could port over to Ruby.

        1. 2

          Oh awesome, I used this in reason and was annoyed it doesn’t exist in rust… Silly me.

          1. 6

            Use cargo clippy, it points out when you have redundant foo: foo,s in struct initializations.

            1. 1

              Thanks, will run it now.

        2. 8

          For those pretty printing values, I highly recommend checking out the dbg! macro: https://doc.rust-lang.org/std/macro.dbg.html

          1. 4

            These are actually very useful, thanks! I think maybe you found the Good List Article

            1. 3

              Definitely useful, thanks!