Fairly new to the forum and a quick search didn't reveal this topic anywhere else.
Simply put, the recommended method of printing errors in Rust - the custom
print_err macro - seems to be totally unnecessary. Rust already defines
eprintln! which formats and prints to
stderr with no apparent difference from how
print_err does. Having
print_err just makes the template cluttered, and if you never print to the standard error stream, raises a warning in the output if you don't manually tag it with
The template may have been created when
eprintln! wasn't present, but right now I can use
eprintln! in place of
print_err! with no apparent ill effect. If there's a good reason for the custom macro I'm open to hear it, but as it stands I can't see any good reason it shouldn't be replaced the next time the templates are revised.