3 ms·
Remember that expanding macros includes things like `println!()`. I'm not sure beginners will find the following particularly easy to read: { ::std
by afdbcreid 5y ago
Remember that expanding macros includes things like `println!()`. I'm not sure beginners will find the following particularly easy to read:
{
::std::io::_print(::core::fmt::Arguments::new_v1(
&["Hey ", "!\n"],
&match (&name,) {
_args => [::core::fmt::ArgumentV1::new(
_args.0,
::core::fmt::Display::fmt,
)],
},
));
};
Although, to be honest, I don't think there are many usages of these macros in std.
- tialaramex 5y agoGood point. I hadn't considered panic!() in particular which is used in std, and the Debug implementations in std won't make a huge amount of extra sense after macro-pre-processing either.