Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Anti-If: The missing patterns (2016). Parent comment
Foo foo = acquireFoo() defer releaseFoo(foo) if !isValid(foo) { return FAIL } moreWork(foo) return SUCCESS
I agree, I am quite comfortable using goto in C/C++ in this context. Though it may be better in C++ to use RAII in this specific example.
There are no comments on this comment yet.
I agree, I am quite comfortable using goto in C/C++ in this context. Though it may be better in C++ to use RAII in this specific example.