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

Rename isExists to exists. Fixes #448 #457

Merged
merged 1 commit into from
Mar 15, 2016

Conversation

CraigSiemens
Copy link
Contributor

isExists() isn't the correct way to phrase that statement and makes the code harder to read. Simply using exists() makes it easer to read and grammatically correct.

json["user"].exists()

@bcapps
Copy link
Contributor

bcapps commented Feb 22, 2016

👍 Really nice, simple change that improves the readability of the API.

@lingoer
Copy link
Member

lingoer commented Mar 15, 2016

Nice!!!

lingoer added a commit that referenced this pull request Mar 15, 2016
Rename isExists to exists. Fixes #448
@lingoer lingoer merged commit 653cf8c into SwiftyJSON:master Mar 15, 2016
zetavg added a commit to zetavg/react-native-ios-charts that referenced this pull request May 2, 2016
isExists() for JSON has not been add upon SwiftyJSON 2.3.1, and is renamed to exists() in this later PR: SwiftyJSON/SwiftyJSON#457.

Specifying "~> 2.3.0" might not work, and let users run into the following error:

```
error: value of type 'JSON' has no member 'isExists'
```
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

Successfully merging this pull request may close these issues.

None yet

3 participants