{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/11749","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/11749/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/11749/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/11749/events","html_url":"https://github.com/JuliaLang/julia/issues/11749","id":89309913,"number":11749,"title":"Infinite behavior of collect(countfrom())","user":{"login":"phobon","id":3770090,"avatar_url":"https://avatars.githubusercontent.com/u/3770090?v=3","gravatar_id":"","url":"https://api.github.com/users/phobon","html_url":"https://github.com/phobon","followers_url":"https://api.github.com/users/phobon/followers","following_url":"https://api.github.com/users/phobon/following{/other_user}","gists_url":"https://api.github.com/users/phobon/gists{/gist_id}","starred_url":"https://api.github.com/users/phobon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phobon/subscriptions","organizations_url":"https://api.github.com/users/phobon/orgs","repos_url":"https://api.github.com/users/phobon/repos","events_url":"https://api.github.com/users/phobon/events{/privacy}","received_events_url":"https://api.github.com/users/phobon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-18T14:36:31Z","updated_at":"2015-06-18T18:44:17Z","closed_at":null,"body":"I was curious to see what would happen if I tried to collect an infinite iterator. I was annoyed to discover it doesn't just run forever, but completely locked up my system. Would it be appropriate to add error methods to prevent this for `Count` and the other infinite iterators?"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/113254338","html_url":"https://github.com/JuliaLang/julia/issues/11749#issuecomment-113254338","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/11749","id":113254338,"user":{"login":"phobon","id":3770090,"avatar_url":"https://avatars.githubusercontent.com/u/3770090?v=3","gravatar_id":"","url":"https://api.github.com/users/phobon","html_url":"https://github.com/phobon","followers_url":"https://api.github.com/users/phobon/followers","following_url":"https://api.github.com/users/phobon/following{/other_user}","gists_url":"https://api.github.com/users/phobon/gists{/gist_id}","starred_url":"https://api.github.com/users/phobon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phobon/subscriptions","organizations_url":"https://api.github.com/users/phobon/orgs","repos_url":"https://api.github.com/users/phobon/repos","events_url":"https://api.github.com/users/phobon/events{/privacy}","received_events_url":"https://api.github.com/users/phobon/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T18:44:17Z","updated_at":"2015-06-18T18:44:17Z","body":"@yuyichao The implementation I was testing was to give `Count`, `Cycle`, and `Repeated` an abstract supertype and add a `collect` method that errors when given one of them. So at least there's some sort of interface there and not just special cases."}}