From the NYC rust Meetup.
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.
Also: struct instantiation has shorthand syntax for fields having the same names as local variables.
Oh awesome, I used this in reason and was annoyed it doesn’t exist in rust… Silly me.
Use cargo clippy, it points out when you have redundant foo: foo,s in struct initializations.
Thanks, will run it now.
For those pretty printing values, I highly recommend checking out the dbg! macro: https://doc.rust-lang.org/std/macro.dbg.html
These are actually very useful, thanks! I think maybe you found the Good List Article
Definitely useful, thanks!