From: "Christoffer Lernö" Date: 2008-07-08T16:26:44+09:00 Subject: Re: Something like import/package in java? On 2 Jul 2008, at 20:56, Charles Oliver Nutter wrote: > Christoffer Lernö wrote: >> For me it is not so much a namespace-issue. It is rather dependency >> and include issue. The most frequent use of java imports for me is >> actually as an indicator of dependencies as I only in very special >> circumstances would use the fully qualified name of a class. > > I think what you're looking for is a static dependency tracking > mechanism in Ruby, a dynamic language. There is not really any > simple way to get such dependency tracking, and certainly nothing > built into Ruby itself. And I don't think this is particularly > unusual among dynamic languages. Static dependency tracking? Yes perhaps sort of that. It doesn't have to be perfect, just work in most cases. But I am also a simpler way to include a file when organizing files in a file hierarchy (stuff like require '../somepath/somefile' is rather unclear and will fail if the file is run from the wrong directory). /C