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

JSONEncoder and JSONDecoder conflicts #3

Open
CocoaPriest opened this issue Nov 13, 2017 · 2 comments
Open

JSONEncoder and JSONDecoder conflicts #3

CocoaPriest opened this issue Nov 13, 2017 · 2 comments

Comments

@CocoaPriest
Copy link

JSONEncoder and JSONDecoder classes should be renamed because they conflict with Foundation in Swift 4:

error: cannot invoke 'JSONDecoder' with no arguments:
let decoder = JSONDecoder()
@Joannis
Copy link
Member

Joannis commented Nov 13, 2017

It's not possible to rename these without a major increase. I approach these by specifying the Module Foundation.JSONEncoder and Cheetah.JSONEncoder

@CocoaPriest
Copy link
Author

yes, I do the same. But imo this is not a good solution for the long term.

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