ceylon/ceylon-spec — Issue #192: Modules: should we allow submodules?
Author: FroMage
Created: 2012-02-20 15:39:05+00:00
State: open
Labels: feature, request for feedback

Should we allow submodules?

A way to make this safe is to use a `:` separator to indicate the end of the module prefix:

```
import org.hibernate.orm:search { SSession = Session }
import org.hibernate.orm { Session }
```

Proposal:

separate org + module name from sub packages

- `org.hibernate.orm:search` => mapped to Java’s `org.hibernate.orm.$.search`
- `org.hibernate.orm.search:` => mapped to Java’s `org.hibernate.orm.search.$`

Potentially add another separation between the organization name and the module name

- `org.hibernate:orm:search` => mapped to Java’s `org.hibernate.$.orm.$.search`