It took some debugging to come across this one:

irb(main):043:0> w
NameError: undefined local variable or method `w' for main:Object
        from (irb):43
        from /home/ravi/.rbenv/versions/2.2.3/bin/irb:11:in `<main>'
irb(main):044:0> w = w
=> nil
irb(main):045:0>

Yeah, right, so what?

It leads to "find the nil" fun-hunts in cases such as:

irb(main):057:0> mispelt_argument = Array(mispelt_argument).flatten.uniq.map(&:name)
=> []

Are there any cases in which this "feature" is actually useful, or is it an unintended parser functionality?

Tom

--
You received this message because you are subscribed to the Google Groups "Ruby or 
Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.

Reply via email to