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

Nullability and Generics #31

Closed
ZevEisenberg opened this issue Jul 8, 2015 · 3 comments
Closed

Nullability and Generics #31

ZevEisenberg opened this issue Jul 8, 2015 · 3 comments

Comments

@ZevEisenberg
Copy link
Collaborator

All the cool kids are using it.

@ateliercw
Copy link

If you add good nullability annotations, it shouldn't be bad to use as a framework with swift.

I'd rather see carthage support for making it more Swift friendly.

@ZevEisenberg
Copy link
Collaborator Author

Carthage support will be added in #32

@jvisenti
Copy link
Contributor

jvisenti commented Mar 2, 2016

@ZevEisenberg Second the request for nullability annotations. Specifically it's a problem because BonMot lets you pass in an optional string to BONChain (it's force unwrapped), but this will crash. This should be required nonnull because NSAttributedString crashes with a nil string.

But really more generally everything being force unwrapped (the default w/ no annotations) is very dangerous.

@ZevEisenberg ZevEisenberg changed the title Swift? Nullability and Generics Mar 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants