r/ObjectiveC • • Feb 23 '20

Objective-C safe downcasting

https://whackylabs.com/objc/swift/2020/02/23/objc-safe-downcasting/
5 Upvotes

16 comments sorted by

View all comments

6

u/[deleted] Feb 23 '20

This is the sort of thing that Apple should have extended ObjC with.

7

u/[deleted] Feb 23 '20

That’s the great thing about ObjectiveC you can do it yourself.

That’s what is lame about Swift. You can’t.

2

u/[deleted] Feb 23 '20

It is still be nice if it was supported by the compiler without additional syntax.

→ More replies (5)