Time to learn about defer statements! This chunk of code runs in functions marked with the throws option, regardless of whether or not an error occurs. Hrm doesn’t sound right. What the heck , here’s what the official Swift Programming Guide has to to say… “Use defer to write a block of code that is always executed before a function returns, regardless of whether an error was thrown. You can use defer even when there is no error handling, to simplify functions that can return from several different places”. Yeah, so that. We also have some fun programming with emojis! As usual, curb your appetite for serious programming tutorials. These are just for fun!
This video is from CartoonSmart’s Video Tutorial Podcast, so keep in mind, this is as much for fun as it is for education. But you’ll probably learn way more than you thought!
Subscribe to our Podcast through iTunes RSS feed / Full Show Archive0 Comments
Leave a reply
You must be logged in to post a comment.