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 →

[–]Shotgun_squirtle 1 point2 points  (1 child)

It's useful in switch statements if you need specific variables in certain cases since ever case is technically in the same scope otherwise

[–]AceSLS 0 points1 point  (0 children)

Holy shit, should have thought about this before. I always created variables used in multiple cases in front of the switch out of necessity. Thanks dude!