Possible Duplicate:
obj.nil? vs. obj == nil
Working through ruby koans now and found this comment embedded in one of the .rb files:
# THINK ABOUT IT:
#
# Is it better to use
# obj.nil?
# or
# obj == nil
# Why?
I know from convention the answer is obj.nil? but I could not tell you why. Anyone have any ideas?