Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Withable support for any NSObject by default #39

Closed
Jeehut opened this issue Nov 10, 2019 · 3 comments
Closed

Add Withable support for any NSObject by default #39

Jeehut opened this issue Nov 10, 2019 · 3 comments

Comments

@Jeehut
Copy link
Member

Jeehut commented Nov 10, 2019

No description provided.

@knothed
Copy link
Contributor

knothed commented Mar 2, 2020

Why specifically for any NSObject? And not for, for example, any AnyObject or Any? What is the need for NSObjects to be Withable?

@Jeehut
Copy link
Member Author

Jeehut commented Mar 3, 2020

@knothed Have you tried extending the protocol AnyObject or the special type Any with Withable? At least I'm getting this error when trying this: "Non-nominal type 'Any' cannot be extended". NSObject is a nominal type and thus can be easily extended.

@knothed
Copy link
Contributor

knothed commented Mar 3, 2020

Of course, you're right, I forgot it's not possible to extend Any or AnyObject.

@Jeehut Jeehut closed this as completed in bc7989d Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants