Ask HN: What does this ruby snippet print and why?
1 comments
something is {a: 1, b: 2}:
called something base
{:a=>1, :b=>2}
something is now nil:
nil
In the end something is nil (instead of {a:1, b:2}) for me on ruby 1.9.3p194 and 2.0.0-p247. Does anyone know why this happens?
Edit: formatting