On 10 июл, 14:42, Jeff Rose <ros...@gmail.com> wrote:
> I also disagree with this concept of putting the language in the
> package name.  One of the benefits of compiling down to a common
> runtime is that we don't need to care what language something was
> written in.  I think this kind of meta-data, along with the domain of
> the project, authors, etc., should be associated with the Jar file if
> anything, but not splatted on the top of every piece of code that uses
> a library.

Also it is possible to have a library implementing single API in parts
in different languages or a library could be rewritten in a different
language while retaining API compatibility.

> The issue of changing domain names when using the domain as package
> name is much worse than only the maintainer having to do a multi-file
> search and replace.

I wonder if Oracle is going to rename all sun.* and com.sun.* packages
in JVM.

Also I don't see why one have to rename packages at all. Package name
following the java conventions does not have to correspond to the
registered domain owned by the project maintainer.

>From the Java Code Conventions
(http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html):

     "The prefix of a unique package name is always written in
     all-lowercase ASCII letters and should be one of the top-level
     domain names, currently com, edu, gov, mil, net, org, or one of
     the English two-letter codes identifying countries as specified
     in ISO Standard 3166, 1981.

     Subsequent components of the package name vary according to an
     organization's own internal naming conventions. Such conventions
     might specify that certain directory name components be division,
     department, project, machine, or login names."

> Another annoyance with these loquacious.package.names is that they
> require your source to be stuffed away in a column of useless
> directories.  Even in an IDE they are annoying because in order to see
> the information containing components (right most) of package names
> you have to have a really wide package manager panel or deal with side
> scrolling.  Every time I'm back in Java these things annoy me.

This is more an IDE GUI usability issue.

--
Mikhail

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to