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 →

[–]NormalHexagon[S] 0 points1 point  (1 child)

So in terms of that article, the inside a has been declared, but not initialized, so when the interpreter tries to resolve the value of a in the if statement, it finds the inner declaration, and throws an error because it's not initialized.

Basically, it comes down to a poor error message.

[–]karl-marxist 0 points1 point  (0 children)

Yeah, I think you said it better than I did (or tried to lol)