News for hackers. Stuff that matters.
Re:Go and Assembly by jgeralnik on Friday February 08, 2013 @12:10AM (#5186393)
Don't bother with the else. Just continue with your code outside a nested block since the if returns.
Re:Go and Assembly by NateDad on Friday February 08, 2013 @07:11AM (#5187422)
in this case, f is locally scoped to the if/else statement since it's assigned inside the if statement... Probably most of the time I would actually assign it outside the if statement and then check it/return and not have the rest of the code indented.