I'm *super* excited the `dbg!()` RFC might be landing soon. I've written println!("{:?}", foo);` too many times -- can't wait to type less.
-
Show this thread
-
Oh, forgot to link the RFC text. Here is! https://github.com/SimonSapin/rfcs/blob/dbg-macro/text/0000-dbg-macro.md …
1 reply 0 retweets 1 likeShow this thread
Ohh, just found out my fave thing about it: it will auto-include file name + line number! This is like a legit improvement for all of us that make heavy use of print-driven-debugging. Woot! dbg!("hello world"); > [http://lib.rs:13 ] "hello world"
0 replies
1 retweet
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.