{"action":"opened","number":646,"pull_request":{"url":"https://api.github.com/repos/tc39/ecma262/pulls/646","id":78901317,"html_url":"https://github.com/tc39/ecma262/pull/646","diff_url":"https://github.com/tc39/ecma262/pull/646.diff","patch_url":"https://github.com/tc39/ecma262/pull/646.patch","issue_url":"https://api.github.com/repos/tc39/ecma262/issues/646","number":646,"state":"open","locked":false,"title":"Proposal: Nested import declarations","user":{"login":"benjamn","id":5750,"avatar_url":"https://avatars.githubusercontent.com/u/5750?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamn","html_url":"https://github.com/benjamn","followers_url":"https://api.github.com/users/benjamn/followers","following_url":"https://api.github.com/users/benjamn/following{/other_user}","gists_url":"https://api.github.com/users/benjamn/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamn/subscriptions","organizations_url":"https://api.github.com/users/benjamn/orgs","repos_url":"https://api.github.com/users/benjamn/repos","events_url":"https://api.github.com/users/benjamn/events{/privacy}","received_events_url":"https://api.github.com/users/benjamn/received_events","type":"User","site_admin":false},"body":"**Stage:** 0\r\n\r\n**Champion:** Ben Newman (Meteor Development Group)\r\n\r\n**Specification:** Work in progress; see attached [commits](commits).\r\n\r\n\r\n## Summary\r\n\r\nThis proposal argues for relaxing the current restriction that `import` declarations may only appear at the top level of a module.\r\n\r\nSpecifically, this proposal would allow `import` declarations that are\r\n\r\n1. **backwards compatible** with the semantics of existing top-level `import` declarations;\r\n1. **nestable** within functions and blocks, enabling multiple new and worthwhile `import` idioms;\r\n1. **hoisted** to the beginning of the enclosing scope; that is, _declarative_ rather than _imperative_;\r\n1. **lexically scoped** to the enclosing block; and\r\n1. **synchronously evaluated**, with clear and manageable consequences for runtime module fetching.\r\n\r\nAt this time, no changes are proposed regarding the placement or semantics of `export`\r\ndeclarations. In the opinion of the author, keeping all `export` declarations at the top\r\nlevel remains important for many of the static properties of the ECMAScript module system.\r\n\r\n## [Full proposal](https://github.com/benjamn/reify/blob/master/PROPOSAL.md)","created_at":"2016-07-26T18:28:54Z","updated_at":"2016-07-26T18:28:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a07e0865e287fdf1c5984498b710fa2391111ab","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tc39/ecma262/pulls/646/commits","review_comments_url":"https://api.github.com/repos/tc39/ecma262/pulls/646/comments","review_comment_url":"https://api.github.com/repos/tc39/ecma262/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tc39/ecma262/issues/646/comments","statuses_url":"https://api.github.com/repos/tc39/ecma262/statuses/0d578e58f5e33d4a62b888dc7d84dbda3f9e9ee8","head":{"label":"benjamn:nested-import-declarations","ref":"nested-import-declarations","sha":"0d578e58f5e33d4a62b888dc7d84dbda3f9e9ee8","user":{"login":"benjamn","id":5750,"avatar_url":"https://avatars.githubusercontent.com/u/5750?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamn","html_url":"https://github.com/benjamn","followers_url":"https://api.github.com/users/benjamn/followers","following_url":"https://api.github.com/users/benjamn/following{/other_user}","gists_url":"https://api.github.com/users/benjamn/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamn/subscriptions","organizations_url":"https://api.github.com/users/benjamn/orgs","repos_url":"https://api.github.com/users/benjamn/repos","events_url":"https://api.github.com/users/benjamn/events{/privacy}","received_events_url":"https://api.github.com/users/benjamn/received_events","type":"User","site_admin":false},"repo":{"id":63706558,"name":"ecma262","full_name":"benjamn/ecma262","owner":{"login":"benjamn","id":5750,"avatar_url":"https://avatars.githubusercontent.com/u/5750?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamn","html_url":"https://github.com/benjamn","followers_url":"https://api.github.com/users/benjamn/followers","following_url":"https://api.github.com/users/benjamn/following{/other_user}","gists_url":"https://api.github.com/users/benjamn/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamn/subscriptions","organizations_url":"https://api.github.com/users/benjamn/orgs","repos_url":"https://api.github.com/users/benjamn/repos","events_url":"https://api.github.com/users/benjamn/events{/privacy}","received_events_url":"https://api.github.com/users/benjamn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benjamn/ecma262","description":"Status, process, and documents for ECMA262","fork":true,"url":"https://api.github.com/repos/benjamn/ecma262","forks_url":"https://api.github.com/repos/benjamn/ecma262/forks","keys_url":"https://api.github.com/repos/benjamn/ecma262/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benjamn/ecma262/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benjamn/ecma262/teams","hooks_url":"https://api.github.com/repos/benjamn/ecma262/hooks","issue_events_url":"https://api.github.com/repos/benjamn/ecma262/issues/events{/number}","events_url":"https://api.github.com/repos/benjamn/ecma262/events","assignees_url":"https://api.github.com/repos/benjamn/ecma262/assignees{/user}","branches_url":"https://api.github.com/repos/benjamn/ecma262/branches{/branch}","tags_url":"https://api.github.com/repos/benjamn/ecma262/tags","blobs_url":"https://api.github.com/repos/benjamn/ecma262/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benjamn/ecma262/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benjamn/ecma262/git/refs{/sha}","trees_url":"https://api.github.com/repos/benjamn/ecma262/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benjamn/ecma262/statuses/{sha}","languages_url":"https://api.github.com/repos/benjamn/ecma262/languages","stargazers_url":"https://api.github.com/repos/benjamn/ecma262/stargazers","contributors_url":"https://api.github.com/repos/benjamn/ecma262/contributors","subscribers_url":"https://api.github.com/repos/benjamn/ecma262/subscribers","subscription_url":"https://api.github.com/repos/benjamn/ecma262/subscription","commits_url":"https://api.github.com/repos/benjamn/ecma262/commits{/sha}","git_commits_url":"https://api.github.com/repos/benjamn/ecma262/git/commits{/sha}","comments_url":"https://api.github.com/repos/benjamn/ecma262/comments{/number}","issue_comment_url":"https://api.github.com/repos/benjamn/ecma262/issues/comments{/number}","contents_url":"https://api.github.com/repos/benjamn/ecma262/contents/{+path}","compare_url":"https://api.github.com/repos/benjamn/ecma262/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benjamn/ecma262/merges","archive_url":"https://api.github.com/repos/benjamn/ecma262/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benjamn/ecma262/downloads","issues_url":"https://api.github.com/repos/benjamn/ecma262/issues{/number}","pulls_url":"https://api.github.com/repos/benjamn/ecma262/pulls{/number}","milestones_url":"https://api.github.com/repos/benjamn/ecma262/milestones{/number}","notifications_url":"https://api.github.com/repos/benjamn/ecma262/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benjamn/ecma262/labels{/name}","releases_url":"https://api.github.com/repos/benjamn/ecma262/releases{/id}","deployments_url":"https://api.github.com/repos/benjamn/ecma262/deployments","created_at":"2016-07-19T15:33:35Z","updated_at":"2016-07-19T15:33:36Z","pushed_at":"2016-07-25T02:15:36Z","git_url":"git://github.com/benjamn/ecma262.git","ssh_url":"git@github.com:benjamn/ecma262.git","clone_url":"https://github.com/benjamn/ecma262.git","svn_url":"https://github.com/benjamn/ecma262","homepage":"https://tc39.github.io/ecma262/","size":7387,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tc39:master","ref":"master","sha":"40edb3a95a475c1b251141ac681b8793129d9a6d","user":{"login":"tc39","id":1725583,"avatar_url":"https://avatars.githubusercontent.com/u/1725583?v=3","gravatar_id":"","url":"https://api.github.com/users/tc39","html_url":"https://github.com/tc39","followers_url":"https://api.github.com/users/tc39/followers","following_url":"https://api.github.com/users/tc39/following{/other_user}","gists_url":"https://api.github.com/users/tc39/gists{/gist_id}","starred_url":"https://api.github.com/users/tc39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tc39/subscriptions","organizations_url":"https://api.github.com/users/tc39/orgs","repos_url":"https://api.github.com/users/tc39/repos","events_url":"https://api.github.com/users/tc39/events{/privacy}","received_events_url":"https://api.github.com/users/tc39/received_events","type":"Organization","site_admin":false},"repo":{"id":18609427,"name":"ecma262","full_name":"tc39/ecma262","owner":{"login":"tc39","id":1725583,"avatar_url":"https://avatars.githubusercontent.com/u/1725583?v=3","gravatar_id":"","url":"https://api.github.com/users/tc39","html_url":"https://github.com/tc39","followers_url":"https://api.github.com/users/tc39/followers","following_url":"https://api.github.com/users/tc39/following{/other_user}","gists_url":"https://api.github.com/users/tc39/gists{/gist_id}","starred_url":"https://api.github.com/users/tc39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tc39/subscriptions","organizations_url":"https://api.github.com/users/tc39/orgs","repos_url":"https://api.github.com/users/tc39/repos","events_url":"https://api.github.com/users/tc39/events{/privacy}","received_events_url":"https://api.github.com/users/tc39/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tc39/ecma262","description":"Status, process, and documents for ECMA262","fork":false,"url":"https://api.github.com/repos/tc39/ecma262","forks_url":"https://api.github.com/repos/tc39/ecma262/forks","keys_url":"https://api.github.com/repos/tc39/ecma262/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tc39/ecma262/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tc39/ecma262/teams","hooks_url":"https://api.github.com/repos/tc39/ecma262/hooks","issue_events_url":"https://api.github.com/repos/tc39/ecma262/issues/events{/number}","events_url":"https://api.github.com/repos/tc39/ecma262/events","assignees_url":"https://api.github.com/repos/tc39/ecma262/assignees{/user}","branches_url":"https://api.github.com/repos/tc39/ecma262/branches{/branch}","tags_url":"https://api.github.com/repos/tc39/ecma262/tags","blobs_url":"https://api.github.com/repos/tc39/ecma262/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tc39/ecma262/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tc39/ecma262/git/refs{/sha}","trees_url":"https://api.github.com/repos/tc39/ecma262/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tc39/ecma262/statuses/{sha}","languages_url":"https://api.github.com/repos/tc39/ecma262/languages","stargazers_url":"https://api.github.com/repos/tc39/ecma262/stargazers","contributors_url":"https://api.github.com/repos/tc39/ecma262/contributors","subscribers_url":"https://api.github.com/repos/tc39/ecma262/subscribers","subscription_url":"https://api.github.com/repos/tc39/ecma262/subscription","commits_url":"https://api.github.com/repos/tc39/ecma262/commits{/sha}","git_commits_url":"https://api.github.com/repos/tc39/ecma262/git/commits{/sha}","comments_url":"https://api.github.com/repos/tc39/ecma262/comments{/number}","issue_comment_url":"https://api.github.com/repos/tc39/ecma262/issues/comments{/number}","contents_url":"https://api.github.com/repos/tc39/ecma262/contents/{+path}","compare_url":"https://api.github.com/repos/tc39/ecma262/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tc39/ecma262/merges","archive_url":"https://api.github.com/repos/tc39/ecma262/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tc39/ecma262/downloads","issues_url":"https://api.github.com/repos/tc39/ecma262/issues{/number}","pulls_url":"https://api.github.com/repos/tc39/ecma262/pulls{/number}","milestones_url":"https://api.github.com/repos/tc39/ecma262/milestones{/number}","notifications_url":"https://api.github.com/repos/tc39/ecma262/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tc39/ecma262/labels{/name}","releases_url":"https://api.github.com/repos/tc39/ecma262/releases{/id}","deployments_url":"https://api.github.com/repos/tc39/ecma262/deployments","created_at":"2014-04-09T19:04:33Z","updated_at":"2016-07-26T14:40:56Z","pushed_at":"2016-07-26T18:28:54Z","git_url":"git://github.com/tc39/ecma262.git","ssh_url":"git@github.com:tc39/ecma262.git","clone_url":"https://github.com/tc39/ecma262.git","svn_url":"https://github.com/tc39/ecma262","homepage":"https://tc39.github.io/ecma262/","size":9043,"stargazers_count":2914,"watchers_count":2914,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":180,"mirror_url":null,"open_issues_count":88,"forks":180,"open_issues":88,"watchers":2914,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tc39/ecma262/pulls/646"},"html":{"href":"https://github.com/tc39/ecma262/pull/646"},"issue":{"href":"https://api.github.com/repos/tc39/ecma262/issues/646"},"comments":{"href":"https://api.github.com/repos/tc39/ecma262/issues/646/comments"},"review_comments":{"href":"https://api.github.com/repos/tc39/ecma262/pulls/646/comments"},"review_comment":{"href":"https://api.github.com/repos/tc39/ecma262/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tc39/ecma262/pulls/646/commits"},"statuses":{"href":"https://api.github.com/repos/tc39/ecma262/statuses/0d578e58f5e33d4a62b888dc7d84dbda3f9e9ee8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":215,"deletions":169,"changed_files":1}}
{"actor":{"display_login":"benjamn"}}