{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/36755","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/36755/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/36755/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/36755/events","html_url":"https://github.com/rust-lang/rust/pull/36755","id":179320632,"number":36755,"title":"Explain motivation behind lifetimes","user":{"login":"Rantanen","id":385385,"avatar_url":"https://avatars.githubusercontent.com/u/385385?v=3","gravatar_id":"","url":"https://api.github.com/users/Rantanen","html_url":"https://github.com/Rantanen","followers_url":"https://api.github.com/users/Rantanen/followers","following_url":"https://api.github.com/users/Rantanen/following{/other_user}","gists_url":"https://api.github.com/users/Rantanen/gists{/gist_id}","starred_url":"https://api.github.com/users/Rantanen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rantanen/subscriptions","organizations_url":"https://api.github.com/users/Rantanen/orgs","repos_url":"https://api.github.com/users/Rantanen/repos","events_url":"https://api.github.com/users/Rantanen/events{/privacy}","received_events_url":"https://api.github.com/users/Rantanen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/received_events","type":"User","site_admin":false},"assignees":[{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-09-26T19:50:05Z","updated_at":"2016-09-27T15:34:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/36755","html_url":"https://github.com/rust-lang/rust/pull/36755","diff_url":"https://github.com/rust-lang/rust/pull/36755.diff","patch_url":"https://github.com/rust-lang/rust/pull/36755.patch"},"body":"Start the lifetime section with an explanation of the issues that lack of explicit lifetimes cause and how the explicit lifetimes solve these.\r\n\r\n----------------\r\n\r\nI had really hard time figuring out why I would need to care about the explicit reference lifetimes when going through the book at first. With strong background in C++, I'm familiar with the dangling reference problem - but given the section seems to focus more on the lifetime syntax and various ways to define lifetimes on functions and structs, I was unable to understand how they are used to solve the reference problem.\r\n\r\nThis PR is an attempt at getting the reader to understand what the explicit lifetimes are used for and why they are an awesome thing instead of a bit of syntax that just has to be written. \r\n\r\nIt's been less than a week that I've been diving into Rust so I'm far from certain about the terminology and technical correctness. I tried mimicking the existing terminology from the lifetimes section, but still no promises on getting it right."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/249902273","html_url":"https://github.com/rust-lang/rust/pull/36755#issuecomment-249902273","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/36755","id":249902273,"user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T15:34:09Z","updated_at":"2016-09-27T15:34:09Z","body":"In general, without explicit main is considered best. Sometimes, you have to have it though. But 99% of the time, you don't."}}
{"actor":{"display_login":"steveklabnik"}}