Use a Do Block Without a Catch Block
Daily Coding Tip 266
It might seem pointless to create a do block on its own, because the lines of code will be run sequentially.
But it’s useful to have a very restrictive view of scope in an app. Whatever happens in a do block stays in that do block, which includes the creation of any variables. This is useful when you don’t want to get con…


