Hacker News new | ask | show | jobs
by taylonr 5022 days ago
This approach made me think of MFC calls. Instead of having multiple return values you'd have a single return value and multiple out parameters.

It's been years since I've done any MFC work, but calls like:

HWND myWin = GetTopWindowTitle(region, out title, out size, out whateverElse);

Then you'd have to either assume that myWin was not an error code and just use the out parameters, or you'd explicitly check the myWin value each time.