Adding `defaultValue` method to Optional

I made a forum post here a few months ago, which proposes a subscript on Optional instead of a method: Subscript on Optional with default value it didn’t get much traction then, but I’m glad this topic is being raised again.

1 Like