Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
telemachos
on Nov 28, 2010
|
parent
|
context
|
favorite
| on:
Ruby is beautiful (but I'm moving to Python)
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
on Nov 28, 2010
[–]
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: