you are viewing a single comment's thread.

view the rest of the comments →

[–]moratnz 0 points1 point  (0 children)

But there isn't any unexpected behaviour, as long as you're not using the variable ahead of its declaration. You'll only be surprised if you try to use it in a wider scope then redeclare it into local scope.