# Intentional Optionality

DevFeed: [Intentional Optionality](<https://devfeed.tech/articles/intentional-optionality-25807.md>)

Original publisher: [Read original article](<https://www.steveonstuff.com/2018/09/13/intentional-optionality>)

Author: Steve Barnegren

Published: 2018-09-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Steve Barnegren](<https://devfeed.tech/sources/steve-barnegren.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [guards](<https://devfeed.tech/tags/guards.md>), [let](<https://devfeed.tech/tags/let.md>), [optional](<https://devfeed.tech/tags/optional.md>), [swift](<https://devfeed.tech/tags/swift.md>)

## AI overview

A Swift article examines intentional use of optionality. It argues that while non-optional types are usually preferable, optional values can sometimes make code easier to read and understand, including when handling leaderboard entries and conditional menu items.

## Source excerpt

When I first started writing Swift, I felt like Optionals were a constant pain point. Everything seemed to end up being Optional, resulting in me littering if lets and guards around my code, and generally just making a horrible mess of things.