News for hackers. Stuff that matters.
Re:Rust vs. C++ Formatting by __david__ on Monday January 16, 2023 @08:47PM (#34408182)
You’re not wrong, but on the other hand, every C compiler I’ve used for the past 25 years has at least a warning you can enable for that. And you can easily add some attribute to custom functions that make use of *printf() functions under the hood to get those also type checked by the compiler. In practice that’s been good enough for me (and catches exactly the type of error you describe).
Re:Rust vs. C++ Formatting by charcircuit on Tuesday January 17, 2023 @01:45AM (#34409767)
Usually the warning is enabled by default