Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Shouldn't this

    h = Hash.new { @1[@2] = "Go Fish: #{@1}" }
Be

    h = Hash.new { @1[@2] = "Go Fish: #@1" }
For maximum syntax golf?

Or are positional arguments not working the same way as instance variables wrt to interpolation?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: