From: "Jon A. Lambert" Date: 2005-05-04T19:03:15+09:00 Subject: Re: Typo-checking instead of static typing Ben Giddings wrote: > > Static typing tends to find typos and brainos in code before it's > executed. > My most frequent Ruby error: "NoMethodError: undefined method `foo' for nil:NilClass" Not a typo, and arguably anything is a braino. Fixed by asking oneself two questions 1) How in sam hill did that get set to nil? 2) Can method bar can return nil, if blah blah foozle wimble? -- J. Lambert