News for hackers. Stuff that matters.
Re:Rust 1.45 by DesertVarnish on Thursday July 16, 2020 @11:43PM (#23866754)
println is a macro in Rust because 1) the language currently lacks support for variadic functions and 2) being a macro allows the format string to be parsed at compile time.
Re:Rust 1.45 by eddyb on Friday July 17, 2020 @03:04AM (#23867937)
Long-term, with const generics, and VG (or a macro that creates a (a, (b, (c, ()))) nesting like the hlist crate), we could maybe replace format_args! and friends.

However, there is one more thing a function can't do: borrowing arguments. Formatting never moves arguments because the format_args! macro generates references to them, which it then creates std::fmt::Argument out of.