In this Swift video tutorial, we’ll talk about nil coalescing operators. This operator, defined by two question marks ( ?? ), allows you to quickly set a variable equal to a default value if another variable is nil. For example, let someVar = varThatMightBeNil ?? defaultAmount
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.