I wish Rust has a `debug!()` macro which just takes arguments like `console.log()`. Typing `println!("{:?} {:?}", foo, bar)` over and over makes for a poor experience :(
-
Show this thread
-
I mean like: stdlib, default level import. Printing stuff out to the console is such an integral part of development. Another improvment that could be made to improve ergonomics: allow `cargo test` to accept `--nocapture`. `$ cargo test -- --nocapture` is rather unintuitive.
1 reply 0 retweets 0 likesShow this thread -
Guess I just defined it for myself here. Look, my first actual macro!pic.twitter.com/DVZ6VwcJtY
2 replies 0 retweets 5 likesShow this thread -
Replying to @yoshuawuyts
This is a crate waiting to happen. Now, if only it could auto implement the Display? trait too ;). A little codegen action
1 reply 0 retweets 0 likes
Was wondering about that: surely there must be a good reason why Debug isn't an auto-trait. Probably because it's not a marker, which means it has _some_ overhead?
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.