In the following piece of code:
puts “First assignment”
@var = 1;
When I run ruby (1.8.4)with -d ($DEBUG=true) I get to see the following
test.rb:3: warning: instance variable @var not initialized
Does it make sense to spit out this warning even if you are doing
something safe such as calling Object#nil?
What do you think?