Join Slack
Powered by
I tend to use the safe cast where possible. `(inpu...
# announcements
a
adam-mcneilly
05/07/2018, 2:22 PM
I tend to use the safe cast where possible.
(input as? MyObject)?.doThing()
is all over my codebase. Granted - you can also split that up to handle the case where the cast fails.
Open in Slack
Previous
Next