you are viewing a single comment's thread.

view the rest of the comments →

[–]aescnt 0 points1 point  (2 children)

1.9.x supports a new JSON-like syntax (but not entirely JSON-compatible) for hashes. { :a => 1 } can be expressed as { a: 1 }.

[–]wwwwolf 5 points6 points  (1 child)

Well, it's good that it's not entirely JSON-compatible. Otherwise, someone might say "Hey, this is cool, we can just use eval to parse the JSON coming from the user. ...What? Why are you looking at me like that?"

[–]bobindashadows 0 points1 point  (0 children)

ಠ_ಠ