Skip to content

Using pointers all over the places? #79

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

Closed
unknwon opened this issue Jan 31, 2014 · 3 comments
Closed

Using pointers all over the places? #79

unknwon opened this issue Jan 31, 2014 · 3 comments

Comments

@unknwon
Copy link

unknwon commented Jan 31, 2014

I'm just curious, even for bool, int and string, is there any specific reason for doing this?

Thanks!

@ttacon
Copy link
Contributor

ttacon commented Jan 31, 2014

It allows you to check for nil - so basically to see if the JSON returned in the response contained that field or not.

@unknwon
Copy link
Author

unknwon commented Jan 31, 2014

Wow, I'd never thought that way! Thank you very much!

@unknwon unknwon closed this as completed Jan 31, 2014
@willnorris
Copy link
Collaborator

you can see the full discussion in issue #19

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

3 participants