From: Mark Hubbart Date: 2004-03-26T05:51:19+09:00 Subject: Re: About type inference for ruby On Mar 25, 2004, at 2:54 AM, gabriele renzi wrote: > Actually I believe too, that you don't need and should not do > x=12 > x='str' something I use a lot: a, b, c, d = ARGV b = b.to_i or: print "What's your favorite number? " if (num = gets): num = num.to_i end or: print "Enter a date: " if (date = gets): date = Date.parse date I find it incredibly useful that you can assign differently typed data to the same variable throughout it's lifetime. just reusing a variable? no, that's bad programming. But replacing it's data with the same data, just in a different form? I think that's okay, myself. just my 2� --Mark