Subject: Why can't Ruby automatically cast variables?
From: Joe Ruby MUDCRAP-CE <joeat303 yahoo.com>
Date: Sun, 1 Oct 2006 04:48:08 +0900
One thing that annoys me about Ruby is that casting variables is
required:
i = 5
a = 'logan'
puts a + i.to_s
Or
a='2'
b=3
puts a.to_i + b
Why can't (or can?) Ruby just handle 'puts a + i' or 'puts a+b'?
Joe
--
Posted via http://www.ruby-forum.com/.