{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3259","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3259/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3259/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3259/events","html_url":"https://github.com/Microsoft/TypeScript/issues/3259","id":79615975,"number":3259,"title":"Rest parameter code change suggestion","user":{"login":"Back-io","id":2212259,"avatar_url":"https://avatars.githubusercontent.com/u/2212259?v=3","gravatar_id":"","url":"https://api.github.com/users/Back-io","html_url":"https://github.com/Back-io","followers_url":"https://api.github.com/users/Back-io/followers","following_url":"https://api.github.com/users/Back-io/following{/other_user}","gists_url":"https://api.github.com/users/Back-io/gists{/gist_id}","starred_url":"https://api.github.com/users/Back-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Back-io/subscriptions","organizations_url":"https://api.github.com/users/Back-io/orgs","repos_url":"https://api.github.com/users/Back-io/repos","events_url":"https://api.github.com/users/Back-io/events{/privacy}","received_events_url":"https://api.github.com/users/Back-io/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-22T21:24:22Z","updated_at":"2015-05-22T22:45:21Z","closed_at":"2015-05-22T22:45:21Z","body":"I realize I might get sent to nit-pickers jail for this ... but:\r\n\r\nRight now the following code:\r\n\r\n```\r\nfunction f(...a: any[]) { }\r\n```\r\nGets outputted like:\r\n```\r\nfunction f() {\r\n    var a = [];\r\n    for (var _i = 0; _i < arguments.length; _i++) {\r\n        a[_i - 0] = arguments[_i];\r\n    }\r\n}\r\n```\r\nBut does it not make more sense to output it like:\r\n```\r\nfunction f() {\r\n    var a = [];\r\n    for (var _i = -1; ++_i < arguments.length;) {\r\n        a[_i - 0] = arguments[_i];\r\n    }\r\n}\r\n```\r\nWhich would cut in half the number of times you need to step over while debugging to get into the function?\r\n\r\nOr am I missing something?"}}