From: Carl Jenkins Date: 2010-07-19T04:56:34+09:00 Subject: Null checks in Ruby I am working to learning Ruby and have a bit of a question regarding program structure. In Java we typically checked (at the beginning of a method) for null and that the parameters being passed in are of a certain value. Maybe I am still (very) new to this world but, are null checks done a lot in the real world with Ruby? For example, I have seen a lot of code doing something like if(obj == null){ log.error(...); throw new SomeException(errMsg); } if(obj2 == null){ log.error(...); throw new SomeException(errMsg); } Does this happen in Ruby programs as well? -- Posted via http://www.ruby-forum.com/.