Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
rudolph9
5y ago
0 comments
Save
Share
Actually, if my memory serves me, a ruby hash can use any object a key! And considering everything in ruby is an object (even the class `Object`) it’s really quite elegant
0 comments
1 comments · 1 top-level
top
newest
oldest
vlunkr
5y ago
This seems to be getting downvotes? I don't know why, it's accurate. Anything can be a key in Ruby.
j
/
k
navigate · click thread line to collapse