From: Gavin Sinclair Date: 2003-08-06T07:55:10+09:00 Subject: Re: Log4r and Ruby 1.8.0 in Singleton problems On Wednesday, August 6, 2003, 1:01:44 AM, Mauricio wrote: > On Tue, Aug 05, 2003 at 11:50:07PM +0900, Ben Giddings wrote: >> I see the argument, but I don't really like it. One thing I like about >> Java (which seems more OO than Ruby) is that when you import something, >> what you're specifying is classes rather than files. I like this idea > Only because Java enforces a given directory structure. If you had the > same constraint in Ruby, require would be similar to import. You would also need the constraint that files and classes be named the same. I am tending towards that constraint in my own code anyway, primarily so the target of 'require' resolves as a ctag, easing navigation. Another difference between Java and Ruby here: Java allows only one "public" class in each file. Not that Ruby has the concept of packages anyway. Gavin