Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Death To Sub-Sub-Sub-Directories! Date: Fri, 06 May 2011 12:17:08 -0400 Organization: albasani.net Lines: 32 Message-ID: References: <34va98-dgm.ln1@dagon.net> <39a84638-8dbc-4a6f-9971-19520198d3fd@s14g2000vbi.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net YwR1ylQ8lQZAkte/H6Yeofj6GHJvq+X+cFiKXUKgBZdC4/CnaxPwH5arroCGVT5sgG8FVytLFtxcBiZ6xoRLMg== NNTP-Posting-Date: Fri, 6 May 2011 16:17:00 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="UVnaBB3Z2A/Zx3gHo3pymMtpjYfEiu3dMK+CjRPiD9lh8nkrnQWhRwKnhskt+Q8TYq4su2EbCOSzARZbpEBdHkxkU/Ks2Jv27uBW3X2dyDMPbyCJBRinVe6iNluZxf9z"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: <39a84638-8dbc-4a6f-9971-19520198d3fd@s14g2000vbi.googlegroups.com> Cancel-Lock: sha1:8Lrc2Z1zZoApbWVLCwPZKgBxrgU= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3694 Paul Cager wrote: > Zapotec wrote: >> Whereas I recognize the technical and engineering reasons for requiring >> the deeply nested long directory names, I also have to say I agree that >> they can be a pain in the butt, on two counts: > I find it interesting that the convention is to use directory > hierarchies (e.g. com/sun/xml/internal) rather than a single directory > (e.g. com.sun.xml.internal). I wonder why they did that. Was it purely > pragmatic (e.g. some architectures might not support multiple dots in > a directory name), or was it to provide the illusion of a hierarchical > package namespace? > > I wish Java _did_ provide a hierarchical package structure, e.g. a > package-private member in com.acme would be visible in com.acme.widget. Stay tuned for super-packages, er, modules, coming eventually, we hope, to a Java near you. http://jcp.org/en/jsr/detail?id=294 The JLS does not require a hierarchical directory structure to support packages even today. Packages are namespaces. In this they are similar to URNs, which need not be hierarchical. It is sometimes convenient that subpackages are not part of the hierarchically antecedent package. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg