{"comment":{"created_at":"2011-10-18T14:47:49Z","body":"Ping @josh, so he's aware of this potential change.","updated_at":"2011-10-18T14:47:49Z","url":"https://api.github.com/repos/jashkenas/coffee-script/issues/comments/2442572","id":2442572,"user":{"avatar_url":"https://secure.gravatar.com/avatar/32652ed5b8fbd2ecdb1c78e9ac567b4b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"32652ed5b8fbd2ecdb1c78e9ac567b4b","url":"https://api.github.com/users/jashkenas","id":4732,"login":"jashkenas"}},"action":"created","issue":{"number":1774,"created_at":"2011-10-17T01:25:44Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Lately, Google Dart has been getting some well-deserved flack for a trivial \"Hello, world\" example generating thousands of lines of JS output. Meanwhile, though, CoffeeScript is generating 3 lines when it could be generating just 1. Since\r\n\r\n     console.log 'Hello, world!'\r\n\r\ncontains no scoped variables, I don't see any benefit to generating the output\r\n\r\n    (function() {\r\n      console.log('Hello, world!');\r\n    }).call(this);\r\n\r\ninstead of just\r\n\r\n    console.log('Hello, world!');\r\n\r\nI propose that the wrapper only be added when it has an effect on scope. What do other folks think?","comments":12,"title":"Generate wrapper only when needed","updated_at":"2011-10-18T14:47:49Z","url":"https://api.github.com/repos/jashkenas/coffee-script/issues/1774","id":1924204,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/24fb0088507077f7852adaec4f6b679f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"24fb0088507077f7852adaec4f6b679f","url":"https://api.github.com/users/michaelficarra","id":218840,"login":"michaelficarra"},"milestone":{"number":10,"created_at":"2011-07-30T01:58:58Z","due_on":null,"title":"as soon as a patch is available","creator":{"avatar_url":"https://secure.gravatar.com/avatar/24fb0088507077f7852adaec4f6b679f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"24fb0088507077f7852adaec4f6b679f","url":"https://api.github.com/users/michaelficarra","id":218840,"login":"michaelficarra"},"url":"https://api.github.com/repos/jashkenas/coffee-script/milestones/10","open_issues":25,"closed_issues":14,"description":"","state":"open"},"closed_at":"2011-10-17T20:16:12Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/34a9fc8f846a8645cf4df511e8ec2c49?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"34a9fc8f846a8645cf4df511e8ec2c49","url":"https://api.github.com/users/TrevorBurnham","id":224895,"login":"TrevorBurnham"},"html_url":"https://github.com/jashkenas/coffee-script/issues/1774","labels":[{"name":"enhancement","url":"https://api.github.com/repos/jashkenas/coffee-script/labels/enhancement","color":"84b6eb"}],"state":"closed"},"legacy":{"issue_id":1924204,"comment_id":2442572}}