{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2615","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2615/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2615/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2615/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2615","id":66321001,"number":2615,"title":"Mixed \":\" and \"=\"","user":{"login":"korenevskiy","id":6898474,"avatar_url":"https://avatars.githubusercontent.com/u/6898474?v=3","gravatar_id":"","url":"https://api.github.com/users/korenevskiy","html_url":"https://github.com/korenevskiy","followers_url":"https://api.github.com/users/korenevskiy/followers","following_url":"https://api.github.com/users/korenevskiy/following{/other_user}","gists_url":"https://api.github.com/users/korenevskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/korenevskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korenevskiy/subscriptions","organizations_url":"https://api.github.com/users/korenevskiy/orgs","repos_url":"https://api.github.com/users/korenevskiy/repos","events_url":"https://api.github.com/users/korenevskiy/events{/privacy}","received_events_url":"https://api.github.com/users/korenevskiy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/By%20Design","name":"By Design","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-04T13:36:02Z","updated_at":"2015-04-06T16:29:49Z","closed_at":"2015-04-06T16:29:49Z","body":"Then can get confused, by \":\" denotes the type, and then after \":\" denotes an internal variable.  That definition is written with a \"=\", and then definition write by \":\".\r\nWhy not make all definition through \"=\"?  A type done through \":\"!\r\nAnd everywhere all mixed up. The real significance of these signs are constantly changing their meaning.  \r\nfunction foo({ from, to = 10 }) {}//definition variable  \"=\"\r\nfoo({ from: 1, to: 5 });//definition variable  \":\"\r\nlet { first: f, last: l } = { first: 'Jane', last: 'Doe' }; //definition variable \":\" and \"=\"\r\nlet { a: x = 1 } = { a: undefined }; //definition variable  \":\" and \"=\"\r\nfunction greetClient({name, height: howTall}) {} //definition variable  new name \":\""},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/90133809","html_url":"https://github.com/Microsoft/TypeScript/issues/2615#issuecomment-90133809","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2615","id":90133809,"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},"created_at":"2015-04-06T16:29:49Z","updated_at":"2015-04-06T16:29:49Z","body":"What basarat said. This is just JavaScript syntax."}}