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

I'm not sure why this is bugging me, but p and puts are not the same thing in Ruby. In most non-debugging contexts, p 'hello world' would be odd since it would print the string for inspection (i.e. with the string literal quotes around it), no?


Yes, that's true. And since I used println in the Java example, I guess I should switch the Ruby example to puts. Will do that now.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: