(The problem is in both Ruby 1.8 and Ruby 1.9)

The expression:

  puts(nil || 4)

works as expected. It prints '4'.

But this expression:

  puts(nil or 4)

fails... it is a syntax error, for some mysterious reason.

Why? I thought the only diference between "or" and "||" is the
precedence.
-- 
Posted via http://www.ruby-forum.com/.