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.
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
-
Guess I just defined it for myself here. Look, my first actual macro!pic.twitter.com/DVZ6VwcJtY
Show this thread
End of conversation
New conversation -
-
-
Why don't you name it console.log!()?
-
Ahaha; `console.log()` is kind of verbose to type, wouldn't you agree? `debug!()` or `log!()` would be better. Leaning towards `debug!()` because it calls the Debug trait for each value passed.
End of conversation
New conversation -
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.