3 ms·
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
by telemachos 16y ago
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?
- djacobs 16y agoYes, 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.