{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/742","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/742/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/742/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/742/events","html_url":"https://github.com/rust-lang/rfcs/pull/742","id":55596195,"number":742,"title":"RFC: Replace `ref` by `*` in patterns","user":{"login":"krdln","id":3074996,"avatar_url":"https://avatars.githubusercontent.com/u/3074996?v=3","gravatar_id":"","url":"https://api.github.com/users/krdln","html_url":"https://github.com/krdln","followers_url":"https://api.github.com/users/krdln/followers","following_url":"https://api.github.com/users/krdln/following{/other_user}","gists_url":"https://api.github.com/users/krdln/gists{/gist_id}","starred_url":"https://api.github.com/users/krdln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krdln/subscriptions","organizations_url":"https://api.github.com/users/krdln/orgs","repos_url":"https://api.github.com/users/krdln/repos","events_url":"https://api.github.com/users/krdln/events{/privacy}","received_events_url":"https://api.github.com/users/krdln/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-27T09:48:52Z","updated_at":"2015-01-27T23:08:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/742","html_url":"https://github.com/rust-lang/rfcs/pull/742","diff_url":"https://github.com/rust-lang/rfcs/pull/742.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/742.patch"},"body":"Change `ref` in patterns to `*`, to make pattern syntax better match expression syntax. Example: `Some(ref x)` becomes `Some(*x)`. This change removes all the usage of `ref` keyword, so the RFC also discusses the fate of it.\r\n\r\n[Rendered](https://github.com/krdln/rfcs/blob/asterisk-patterns/text/0000-replace-ref-by-asterisk.md)\r\n\r\n----\r\n\r\nThis is not a new proposal, because discussions (eg. [here](http://discuss.rust-lang.org/t/current-syntax/459/14), [here](https://github.com/rust-lang/rfcs/pull/462#issuecomment-62764540) and [there](http://discuss.rust-lang.org/t/change-ref-to-in-patterns/1027)) about this change happen from time to time, but I think it deserves an RFC."},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/71748219","html_url":"https://github.com/rust-lang/rfcs/pull/742#issuecomment-71748219","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/742","id":71748219,"user":{"login":"nstoddard","id":5508622,"avatar_url":"https://avatars.githubusercontent.com/u/5508622?v=3","gravatar_id":"","url":"https://api.github.com/users/nstoddard","html_url":"https://github.com/nstoddard","followers_url":"https://api.github.com/users/nstoddard/followers","following_url":"https://api.github.com/users/nstoddard/following{/other_user}","gists_url":"https://api.github.com/users/nstoddard/gists{/gist_id}","starred_url":"https://api.github.com/users/nstoddard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstoddard/subscriptions","organizations_url":"https://api.github.com/users/nstoddard/orgs","repos_url":"https://api.github.com/users/nstoddard/repos","events_url":"https://api.github.com/users/nstoddard/events{/privacy}","received_events_url":"https://api.github.com/users/nstoddard/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T23:08:36Z","updated_at":"2015-01-27T23:08:36Z","body":"When I was learning Rust, I thought `ref` was some kind of weird synonym for `&`. This seems to clear up that potential confusion. +1."}}