Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jerf
on Jan 6, 2011
|
parent
|
context
|
favorite
| on:
R.I.P. Ruby Hash Rocket Syntax 1993-2010
I am not a Ruby programmer. What's the syntax for using a variable as the key, which is actually synonymous with the Python code?
j_baker
on Jan 6, 2011
[–]
It would be something like this:
>> a = :foobar => :foobar >> {a => 1} => {:foobar=>1}
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: