Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Sshole. Parent comment
I think with C23 you got half a banana now. Still can't do it because C23 didn't adopt proposals to allow returns of untagged/anonymous structs.
If you could then you could write
auto rtn = Foo(); if(rtn.err) printf("err=%i", rtn.err); else printf("Foo=%i\n", rtn.foo);
There are no comments on this comment yet.
I think with C23 you got half a banana now. Still can't do it because C23 didn't adopt proposals to allow returns of untagged/anonymous structs.
If you could then you could write