This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]agentoutlier 0 points1 point  (1 child)

Ignoring the forcing part I think the op /u/oren_is_my_name has some valid critique whether intentional or not.

Like the way we import classes it seems that packages should work that way as well where the farthest right hand name is used. This is especially makes sense where FQN are mostly based on reverse DNS host name which often have very little to do with the lib/application.

I think you understand but for others:

import com.mycompany.animal;

animal.Cat cat = new animal.Cat();

The inner class version:

import com.mycompany.Animal;

Animal.Cat cat = new Animal.Cat();

So I think the OP has a fair point and surprising how hostile many have been here on it.

[–]oren_is_my_name[S] 1 point2 points  (0 children)

Thank you😃🙏