{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1682","repository_url":"https://api.github.com/repos/rust-lang/rfcs","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1682/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1682/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1682/events","html_url":"https://github.com/rust-lang/rfcs/pull/1682","id":166378447,"number":1682,"title":"Named field puns","user":{"login":"ranweiler","id":515835,"avatar_url":"https://avatars.githubusercontent.com/u/515835?v=3","gravatar_id":"","url":"https://api.github.com/users/ranweiler","html_url":"https://github.com/ranweiler","followers_url":"https://api.github.com/users/ranweiler/followers","following_url":"https://api.github.com/users/ranweiler/following{/other_user}","gists_url":"https://api.github.com/users/ranweiler/gists{/gist_id}","starred_url":"https://api.github.com/users/ranweiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranweiler/subscriptions","organizations_url":"https://api.github.com/users/ranweiler/orgs","repos_url":"https://api.github.com/users/ranweiler/repos","events_url":"https://api.github.com/users/ranweiler/events{/privacy}","received_events_url":"https://api.github.com/users/ranweiler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-lang","name":"T-lang","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":36,"created_at":"2016-07-19T16:42:43Z","updated_at":"2016-07-19T23:47:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1682","html_url":"https://github.com/rust-lang/rfcs/pull/1682","diff_url":"https://github.com/rust-lang/rfcs/pull/1682.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1682.patch"},"body":"This RFC proposes a shorthand syntax for constructing struct-like values with _named fields_.\r\n\r\n[Rendered](https://github.com/ranweiler/rfcs/blob/named-field-puns/text/0000-named-field-puns.md)\r\n\r\nWe propose treating expressions like `S { x }` to be equivalent to `S { x: x }`, where `S` is a struct, struct-like enum variant, or untagged union.\r\n\r\nNote: this RFC was coauthored by @joshtriplett and myself."},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/233799943","html_url":"https://github.com/rust-lang/rfcs/pull/1682#issuecomment-233799943","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1682","id":233799943,"user":{"login":"solson","id":26806,"avatar_url":"https://avatars.githubusercontent.com/u/26806?v=3","gravatar_id":"","url":"https://api.github.com/users/solson","html_url":"https://github.com/solson","followers_url":"https://api.github.com/users/solson/followers","following_url":"https://api.github.com/users/solson/following{/other_user}","gists_url":"https://api.github.com/users/solson/gists{/gist_id}","starred_url":"https://api.github.com/users/solson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solson/subscriptions","organizations_url":"https://api.github.com/users/solson/orgs","repos_url":"https://api.github.com/users/solson/repos","events_url":"https://api.github.com/users/solson/events{/privacy}","received_events_url":"https://api.github.com/users/solson/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T23:47:17Z","updated_at":"2016-07-19T23:47:17Z","body":"On a second look, I was a bit confused about the confusion! It now occurs to me that the similarity between `x: y` in structs and in type ascription is an existing problem, and the proposed `Foo { x, y }` shorthand has even less syntactical similarity to type ascription."}}
{"actor":{"display_login":"solson"}}