Comment by BobbyTables2
2 months ago
Yeah but those standard libraries are still inadequate 30 years later.
Imagine a hypothetical Python scenario where every application and library had their own list implementations with differently named methods and behavior.
Yet C is exactly that. Is it not common place to log messages to a file? How many applications and code bases DO NOT use syslog(). And if one wants to use syslog, then assert failures won’t get logged there…
Sure, with a custom assertion and logging framework one can get reasonable behavior. But it’s not automatic. Hence, a Tower of Babel …
That's Linux C you're talking about. Many, many, many C codebases don't use syslog.
Exactly!
At least Python has a standardized “logging” module where applications can control the format and destination.
But with the standard C library, there is little common ground. Solutions to the same basic problems are constantly reinvented - differently.