Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nirvdrum
on Jan 17, 2013
|
parent
|
context
|
favorite
| on:
Ruby mistakes
Thanks for the clarification. I was recently surprised by the return value when:
z = x.y
z == x.y # => true
defined?(z) == defined?(x.y) # => false
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
z = x.y
z == x.y # => true
defined?(z) == defined?(x.y) # => false