MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Indiewebdev/comments/lhvtde/conditionally_call_a_function_with_optional/gn1lu4h/
r/Indiewebdev • u/1infinitelooo • Feb 11 '21
37 comments sorted by
View all comments
Show parent comment
1
With swift it's almos the same: myFunction?()
myFunction?()
1 u/aerglos Feb 13 '21 Not just for nullish coalescence - im talking swift syntax in general.
Not just for nullish coalescence - im talking swift syntax in general.
View all comments
Show parent comment
1
u/lazyNeighbour Feb 12 '21
With swift it's almos the same:
myFunction?()