-
Notifications
You must be signed in to change notification settings - Fork 290
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
Change boolean values from 1/0 to true/false #10
Comments
I like Boolean.
|
Agree with this one as well. BTW, I'm the director of engineering at PBSC, pleasure to meet you all. |
I like true/false. |
Might be late to the party, but as a writer of client library that uses the GBFS standard, avoiding special handling of the bool types would be nice. |
I've opened a PR for this over at #196 - let's move any more conversation there, and I'll close this in a few days. |
A proposal from Tom Brown in the original draft:
The integers 0 and 1 evaluate as falsy and truthy in Javascript but not in other languages so converting these to true booleans would make these values more explicit. They would represent an additional several characters in the underlying file, which may or may not be a concern from a bandwidth perspective, but it's the only reason I could think to not make this change.
The text was updated successfully, but these errors were encountered: