Swift by Sundell cover image

103: “What’s new in Swift 5.5”, with special guest Antoine van der Lee

Swift by Sundell

CHAPTER

Using a Read Only Property in Swift?

Swift now has effectful read only properties. This means that if you define property which returns a value, you can also make it throwable. Just like you have methods that trow, you will use the try key word before accessing property. In the future, non read only properties will also be able to have a throwing option.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner