nil is a magic object
nil is the object that means "there is no object"
Q: What is the sound of one hand clapping?
A:
nil
fruit = "apple"
fruit = nil
fruit.reverse
Read the error!
They tell you
Interpret this error:
fruit.reverse
NoMethodError: undefined method `reverse' for nil:NilClass
Two philosophies:
Which idea is better?
Why or why not?
/