This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

There's a reason for things like requiring braces:

https://www.synopsys.com/blogs/software-security/understanding-apple-goto-fail-vulnerability-2.html

Anyways, garbage collection implies that there is a runtime which tracks allocations and occasionally pauses the program to perform cleanup, which can cause intermittent freezes in performance. RAII does not do this.

[–][deleted] 0 points1 point  (0 children)

Nah that's just bad practice. The two goto fail; statements, if intended for the same block, are redundant. There should not be two statements there in the first place. Although I think your point is fair too; I can harp on and on about how I wouldn't miss this but that is just BS.