{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/angular2/issues/108","repository_url":"https://api.github.com/repos/dart-lang/angular2","labels_url":"https://api.github.com/repos/dart-lang/angular2/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/angular2/issues/108/comments","events_url":"https://api.github.com/repos/dart-lang/angular2/issues/108/events","html_url":"https://github.com/dart-lang/angular2/issues/108","id":180096918,"number":108,"title":"Support function literals in useFactory Providers","user":{"login":"natebosch","id":7528195,"avatar_url":"https://avatars.githubusercontent.com/u/7528195?v=3","gravatar_id":"","url":"https://api.github.com/users/natebosch","html_url":"https://github.com/natebosch","followers_url":"https://api.github.com/users/natebosch/followers","following_url":"https://api.github.com/users/natebosch/following{/other_user}","gists_url":"https://api.github.com/users/natebosch/gists{/gist_id}","starred_url":"https://api.github.com/users/natebosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natebosch/subscriptions","organizations_url":"https://api.github.com/users/natebosch/orgs","repos_url":"https://api.github.com/users/natebosch/repos","events_url":"https://api.github.com/users/natebosch/events{/privacy}","received_events_url":"https://api.github.com/users/natebosch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-29T16:22:09Z","updated_at":"2016-09-29T16:44:20Z","closed_at":null,"body":"Blocked by https://github.com/dart-lang/angular2/issues/48\r\n\r\nMay still be infeasible after that, but this is worth exploring."},"comment":{"url":"https://api.github.com/repos/dart-lang/angular2/issues/comments/250523451","html_url":"https://github.com/dart-lang/angular2/issues/108#issuecomment-250523451","issue_url":"https://api.github.com/repos/dart-lang/angular2/issues/108","id":250523451,"user":{"login":"matanlurey","id":168174,"avatar_url":"https://avatars.githubusercontent.com/u/168174?v=3","gravatar_id":"","url":"https://api.github.com/users/matanlurey","html_url":"https://github.com/matanlurey","followers_url":"https://api.github.com/users/matanlurey/followers","following_url":"https://api.github.com/users/matanlurey/following{/other_user}","gists_url":"https://api.github.com/users/matanlurey/gists{/gist_id}","starred_url":"https://api.github.com/users/matanlurey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matanlurey/subscriptions","organizations_url":"https://api.github.com/users/matanlurey/orgs","repos_url":"https://api.github.com/users/matanlurey/repos","events_url":"https://api.github.com/users/matanlurey/events{/privacy}","received_events_url":"https://api.github.com/users/matanlurey/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T16:44:20Z","updated_at":"2016-09-29T16:44:20Z","body":"Not possible: We need all providers to be statically analyzable, i.e. we could never allow\r\n\r\n```dart\r\nFunction someFunc;\r\nif (value) {\r\n  someFunc = funcA;\r\n} else {\r\n  someFunc = funcB;\r\n}\r\nprovide(Token, useFactory: someFunc);\r\n```"}}
{"actor":{"display_login":"matanlurey"}}