My experience has shown that having names be treated as unique identifiers is a hairy situation. And frankly, unique identifiers in a system for distributing source code are as important as domain names if not way more so.
Domain names only ever run code in an ostensibly sandboxed vm.