{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/940","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/940/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/940/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/940/events","html_url":"https://github.com/rust-lang/rfcs/pull/940","id":59892093,"number":940,"title":"Disallow hyphens in crate names","user":{"login":"lfairy","id":1572323,"avatar_url":"https://avatars.githubusercontent.com/u/1572323?v=3","gravatar_id":"","url":"https://api.github.com/users/lfairy","html_url":"https://github.com/lfairy","followers_url":"https://api.github.com/users/lfairy/followers","following_url":"https://api.github.com/users/lfairy/following{/other_user}","gists_url":"https://api.github.com/users/lfairy/gists{/gist_id}","starred_url":"https://api.github.com/users/lfairy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfairy/subscriptions","organizations_url":"https://api.github.com/users/lfairy/orgs","repos_url":"https://api.github.com/users/lfairy/repos","events_url":"https://api.github.com/users/lfairy/events{/privacy}","received_events_url":"https://api.github.com/users/lfairy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":39,"created_at":"2015-03-05T01:42:34Z","updated_at":"2015-03-11T07:00:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/940","html_url":"https://github.com/rust-lang/rfcs/pull/940","diff_url":"https://github.com/rust-lang/rfcs/pull/940.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/940.patch"},"body":"Crate names with hyphens (e.g. `rustc-serialize`) are awkward to use and inconsistent with the rest of the language.\r\n\r\nThis RFC proposes a plan to deprecate and eventually remove the feature before 1.0.\r\n\r\n[Rendered](https://github.com/lfairy/rfcs/blob/hyphens-considered-harmful/text/0000-hyphens-considered-harmful.md)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/78214309","html_url":"https://github.com/rust-lang/rfcs/pull/940#issuecomment-78214309","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/940","id":78214309,"user":{"login":"CloudiDust","id":30068,"avatar_url":"https://avatars.githubusercontent.com/u/30068?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudiDust","html_url":"https://github.com/CloudiDust","followers_url":"https://api.github.com/users/CloudiDust/followers","following_url":"https://api.github.com/users/CloudiDust/following{/other_user}","gists_url":"https://api.github.com/users/CloudiDust/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudiDust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudiDust/subscriptions","organizations_url":"https://api.github.com/users/CloudiDust/orgs","repos_url":"https://api.github.com/users/CloudiDust/repos","events_url":"https://api.github.com/users/CloudiDust/events{/privacy}","received_events_url":"https://api.github.com/users/CloudiDust/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T07:00:04Z","updated_at":"2015-03-11T07:00:04Z","body":"@eternaleye, I think I am not fine with special casing `-`, because `-` and `_` are quite similar in semantics. So choosing one or another is a very subjective matter, and leads to much inconsistency. OTOH `/` is clearly a namespacing character if it is paired with `_`. So at least it wins in the consistency department. :P\r\n\r\nThe `from` sugar is just one of many possiblities.\r\n\r\nAdding namespaces to rust packages is a much discussed topic. And I am currently one in favor of \"no mendatory multi-level namespacing\" (or \"every top level package creates a new namespace\").\r\n\r\nI think building namespacing support on top of `/` would be quite natural and backwards-compatiable. (The compiler doesn't have to know anything about namespacing currently, and support, if needed, can be added easily later, which is a big advantage.)\r\n"}}