logoalt Hacker News

StilesCrisis • yesterday at 11:17 AM • 0 replies • view on HN

C allows struct returns, and C++ allows something quite close to what you've written verbatim. But in 1989, there was less of a focus on error handling; most code wasn't checking errno at all, so why spend time returning it to every caller?