|
I think, that wouldn't really help.
First, it is absolutely counter intuitive. Probably everyone would expect sub folders to map to packages, especially that two Controllers with the same name in two folders would not clash. Second, it does not give the scaleability (in team size) that could be achieved by namespaces. Two teams working in parallel in two packages should interfere with each other in the least possible way. So I would propose to not implement it in a way that the class names must still be unique (better to not implement it all). But I do not yet understand why "importing classes [...] is anatheme to dynamic programming". But as you probably know you could create the "file" in two steps: Rolling over to 0.5.5 reduce workload for 0.5 pre JavaOne
classes can be placed in packages now, only limitations is controller Prefix still has to be unique. So you can't have two controllers with same class name regardless of package
Please reopen.
This is only half of the enhancement, and its not leading anywhere. A package is a namespace and not only a name. The reason that controllers, domain classes should be in packages is exactly that multiple teams would be able to work in parallel if each team has its own package, and must not consider name clashes. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The rationale for this is that importing classes (which is required if they are in packages) is anatheme to dynamic programming in essence, and service injection by name will become ugly and problematic.