{"action":"closed","number":16310,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/16310","id":69680663,"html_url":"https://github.com/JuliaLang/julia/pull/16310","diff_url":"https://github.com/JuliaLang/julia/pull/16310.diff","patch_url":"https://github.com/JuliaLang/julia/pull/16310.patch","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/16310","number":16310,"state":"closed","locked":false,"title":"make setindex with colon fall back to fill!","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"body":"Update to #13459. Fixes #16302 for `Arrays`. @mbauman mentioned in https://github.com/JuliaLang/julia/pull/13459#issuecomment-218308064 that this could be extended to `AbstractArray` but that it has the extra complication of dealing with the vararg call.\r\n\r\nFor now, this at least improves the situation for `Arrays` as compared to the results in #16302.\r\n\r\n```jl\r\njulia> function foo(A)\r\n           for i = 1:10^6\r\n               A[:] = 0\r\n           end\r\n       end\r\nfoo (generic function with 1 method)\r\n\r\njulia> @time foo([3,4,5])\r\n  0.005799 seconds (5 allocations: 272 bytes)\r\n```\r\n\r\ncc @stevengj ","created_at":"2016-05-11T14:21:37Z","updated_at":"2016-05-13T14:17:47Z","closed_at":"2016-05-13T14:17:47Z","merged_at":"2016-05-13T14:17:46Z","merge_commit_sha":"10cc4a63cb7eb226599ee1339c7160cd1ee8ecfc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaLang/julia/pulls/16310/commits","review_comments_url":"https://api.github.com/repos/JuliaLang/julia/pulls/16310/comments","review_comment_url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/16310/comments","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/2cf299928671a9719ab2a3e5e36c5188cbc334be","head":{"label":"KristofferC:kc/fill_array","ref":"kc/fill_array","sha":"2cf299928671a9719ab2a3e5e36c5188cbc334be","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"repo":{"id":33200454,"name":"julia","full_name":"KristofferC/julia","owner":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KristofferC/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":true,"url":"https://api.github.com/repos/KristofferC/julia","forks_url":"https://api.github.com/repos/KristofferC/julia/forks","keys_url":"https://api.github.com/repos/KristofferC/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KristofferC/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KristofferC/julia/teams","hooks_url":"https://api.github.com/repos/KristofferC/julia/hooks","issue_events_url":"https://api.github.com/repos/KristofferC/julia/issues/events{/number}","events_url":"https://api.github.com/repos/KristofferC/julia/events","assignees_url":"https://api.github.com/repos/KristofferC/julia/assignees{/user}","branches_url":"https://api.github.com/repos/KristofferC/julia/branches{/branch}","tags_url":"https://api.github.com/repos/KristofferC/julia/tags","blobs_url":"https://api.github.com/repos/KristofferC/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KristofferC/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KristofferC/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/KristofferC/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KristofferC/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/KristofferC/julia/languages","stargazers_url":"https://api.github.com/repos/KristofferC/julia/stargazers","contributors_url":"https://api.github.com/repos/KristofferC/julia/contributors","subscribers_url":"https://api.github.com/repos/KristofferC/julia/subscribers","subscription_url":"https://api.github.com/repos/KristofferC/julia/subscription","commits_url":"https://api.github.com/repos/KristofferC/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/KristofferC/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/KristofferC/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/KristofferC/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/KristofferC/julia/contents/{+path}","compare_url":"https://api.github.com/repos/KristofferC/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KristofferC/julia/merges","archive_url":"https://api.github.com/repos/KristofferC/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KristofferC/julia/downloads","issues_url":"https://api.github.com/repos/KristofferC/julia/issues{/number}","pulls_url":"https://api.github.com/repos/KristofferC/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/KristofferC/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/KristofferC/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KristofferC/julia/labels{/name}","releases_url":"https://api.github.com/repos/KristofferC/julia/releases{/id}","deployments_url":"https://api.github.com/repos/KristofferC/julia/deployments","created_at":"2015-03-31T17:47:12Z","updated_at":"2016-02-16T12:34:46Z","pushed_at":"2016-05-11T15:57:56Z","git_url":"git://github.com/KristofferC/julia.git","ssh_url":"git@github.com:KristofferC/julia.git","clone_url":"https://github.com/KristofferC/julia.git","svn_url":"https://github.com/KristofferC/julia","homepage":"http://julialang.org/","size":87427,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"JuliaLang:master","ref":"master","sha":"c9d405156f8c13a2b81f268529fec3ecf9ac651a","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaLang/julia/deployments","created_at":"2011-04-21T07:01:50Z","updated_at":"2016-05-12T22:23:01Z","pushed_at":"2016-05-13T14:17:46Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":384050,"stargazers_count":7035,"watchers_count":7035,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1625,"mirror_url":null,"open_issues_count":1742,"forks":1625,"open_issues":1742,"watchers":7035,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/16310"},"html":{"href":"https://github.com/JuliaLang/julia/pull/16310"},"issue":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/16310"},"comments":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/16310/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/16310/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/16310/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaLang/julia/statuses/2cf299928671a9719ab2a3e5e36c5188cbc334be"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"comments":0,"review_comments":7,"commits":1,"additions":3,"deletions":0,"changed_files":1}}