▲ | Cloudef 3 days ago | |||||||
To be honest, the generated machine code / assembly is often more readable than the actual c++ code in c++ stdlibs. So I can sympathize with the "This printf is more readable than that libfmt stuff." comment :) | ||||||||
▲ | illuminator83 3 days ago | parent [-] | |||||||
Oh, they were not talking about the implementation of these things. Just the the user side: printf("Error: File `%s` in batch %d failed.", file.c_str(), batch) vs fmt::print("Error: File `{}` in batch {} failed.", file, batch) One of which is objectively safer and more portable than the other. They didn't care. "I like what I've been doing for the last 20 years already better because it looks better.". "No Its not because I'm just used to it." "If you are careful it is just as safe. But you gotta know what you are doing." And best of all - classic elitism: "If you are not smart enough to do it right with printf, maybe you shouldn't be a C++ programmer. Go write C# or something instead." The same person was not smart enough to do it right in many places as I've proven with a static analyzer. | ||||||||
|