#Getting the hang of the `Optional`

1 messages · Page 1 of 1 (latest)

jade fog
#

Agree, major kudos to @wild drum, every time I wanted to do something with Optional there was already a method or helper function (like Opt()) in place. Needs successfully anticipated 😎

wild drum
#

❤️ yay nice to hear it!

#

out of curiosity, have you ever found yourself wanting to get an unset optional? to fallback to the default?
i was thinking of adding OptEmpty or similar 🤔

cerulean cradle
#

but if I had more than just 1 optional there I could see that getting unwieldy and there's some downsides of duplicating definitions of defaults

wanton bridge
#

I also love the pattern. My only pain so far has been the lack of Optional[[]string]

wild drum
wild drum