Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
icebraining
on Oct 18, 2015
|
parent
|
context
|
favorite
| on:
The Dynamic Def – abusing Ruby's def statement
I think Python make the difference clear, with == vs "is".
msbarnett
on Oct 18, 2015
[–]
Ruby provides object_id for the same purpose. Comparing those for equality provides the "is_" semantics.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: