{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16/events","html_url":"https://github.com/Microsoft/TypeScript/issues/16","id":37906351,"number":16,"title":"Suggestion: \"safe navigation operator\", i.e. x?.y","user":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20Proposal","name":"Needs Proposal","color":"556b75"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":56,"created_at":"2014-07-15T17:27:00Z","updated_at":"2015-12-08T15:42:01Z","closed_at":null,"body":"C# and other languages have syntax sugar for accessing property chains where `null` (or in our case, `undefined`) might be encountered at any point in the object hierarchy.\r\n\r\n```TypeScript\r\nvar x = { y: { z: null, q: undefined } };\r\nconsole.log(x?.y?.z?.foo); // Should print 'null'\r\nconsole.log(x?.baz); // Still an error\r\nconsole.log(x.y.q?.bar); // Should print 'undefined'\r\n```\r\n\r\nNeed proposal on what exactly we should codegen, keeping in mind side effects of accessors."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/162921702","html_url":"https://github.com/Microsoft/TypeScript/issues/16#issuecomment-162921702","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/16","id":162921702,"user":{"login":"svekl","id":11420272,"avatar_url":"https://avatars.githubusercontent.com/u/11420272?v=3","gravatar_id":"","url":"https://api.github.com/users/svekl","html_url":"https://github.com/svekl","followers_url":"https://api.github.com/users/svekl/followers","following_url":"https://api.github.com/users/svekl/following{/other_user}","gists_url":"https://api.github.com/users/svekl/gists{/gist_id}","starred_url":"https://api.github.com/users/svekl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svekl/subscriptions","organizations_url":"https://api.github.com/users/svekl/orgs","repos_url":"https://api.github.com/users/svekl/repos","events_url":"https://api.github.com/users/svekl/events{/privacy}","received_events_url":"https://api.github.com/users/svekl/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T15:42:01Z","updated_at":"2015-12-08T15:42:01Z","body":"Please, implenent ?. operator, as C# does"}}