From: John Johnson Date: 2003-07-17T00:53:41+09:00 Subject: Re: Other languages' features in Ruby on 7/16/03 11:31 AM, Ben Giddings at ben@thingmagic.com wrote: > On Wed July 16 2003 10:49 am, John Johnson wrote: >>> >>> Is there a good way to get what type checking does for you? Maybe some >> ... >>> catching typos, like calling the class variable @my_var, but ending up >>> using it as @myvar. >>> >> >> Test First Design? > > Ok, but compare: > > "Test 473 failed: expecting 17, got 18" > > with > > "warning: on line 765 of myfile.rb: @myvar may not have been initialized" > In defense of TFD, this isn't really a plausible comparison. A more likely output from a test case would be: ... 1) Failure!!! test_my_var(TC_Example) [tc_example.rb:10]: check for @my_var intialization expected to not be nil ... I do understand what you're saying. I've often wished for a "use strict;". But it isn't worth regressing to Perl :-) -- Regards, JJ Be Kind, Be Careful, Be Yourself