3 ms·
I think the natural point of comparison with C here would be printf().
by oconnor663 5y ago
I think the natural point of comparison with C here would be printf().
- SAI_Peregrinus 5y agoPrintf at least doesn't recursively expand the format string.
- lanstin 5y agoAnd one of the good things in Go is that you can pass arbotrary crap to fmt.Printf and it wont crash or overflow anything. So logging errors don't kill you (unlike c or python). Ironically, tho, my tool to scan all our jar files for log4j has revealed a panic in archive/zip, something to do with a zero length file name.