On Friday, 1 July 2016 at 19:43:05 UTC, Patrick Schluter wrote:
It looks like a loop, but isn't one.
It doesn't look like a goto, but is one.

Yes, it looks buggy, and the -cov did the right thing by marking it as uncovered as this could be a serious and difficult to find bug.

I wonder why people write such ugly and misleading code deliberately? The compiler turns it into jumps anyway and in this case a bool or gotos are much more readable and not slower.

In fact, a statemachine implemented as gotos can be very clean, efficient and easy to debug. It's a matter of structuring the code layout.


Reply via email to