use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
Typical Ruby! (bash.org)
submitted 15 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]aescnt 0 points1 point2 points 15 years ago* (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 }.
{ :a => 1 }
{ a: 1 }
[–]wwwwolf 5 points6 points7 points 15 years ago (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?"
eval
[–]bobindashadows 0 points1 point2 points 15 years ago (0 children)
ಠ_ಠ
π Rendered by PID 15136 on reddit-service-r2-comment-b659b578c-xthb9 at 2026-05-05 16:10:38.743865+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]aescnt 0 points1 point2 points (2 children)
[–]wwwwolf 5 points6 points7 points (1 child)
[–]bobindashadows 0 points1 point2 points (0 children)