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

are negative numbers allowed? #11

Closed
benolee opened this issue Feb 24, 2013 · 2 comments
Closed

are negative numbers allowed? #11

benolee opened this issue Feb 24, 2013 · 2 comments

Comments

@benolee
Copy link
Contributor

benolee commented Feb 24, 2013

what about negative numbers?

-35
-1.2

I'll throw in another question just because I haven't seen it yet -- what about nil?

@mojombo
Copy link
Member

mojombo commented Feb 24, 2013

Negatives added in 2aa7b44. I'm still pondering nil. Care to present an argument one way or another?

@mojombo mojombo closed this as completed Feb 24, 2013
@benolee
Copy link
Contributor Author

benolee commented Feb 24, 2013

Honestly, I can't think of any good reasons.

I'm considering if it matters that the value of a missing key in ruby hashes (using []) is nil, while in javascript, it's undefined. Maybe just have empty values?

For example

# in json this would be {"key":null}
key =

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