{"action":"created","issue":{"url":"https://api.github.com/repos/Swinject/Swinject/issues/58","labels_url":"https://api.github.com/repos/Swinject/Swinject/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/Swinject/Swinject/issues/58/comments","events_url":"https://api.github.com/repos/Swinject/Swinject/issues/58/events","html_url":"https://github.com/Swinject/Swinject/pull/58","id":130375314,"number":58,"title":"Fixed assembler constructor: parent assembler is optional","user":{"login":"Nikita2k","id":5546990,"avatar_url":"https://avatars.githubusercontent.com/u/5546990?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita2k","html_url":"https://github.com/Nikita2k","followers_url":"https://api.github.com/users/Nikita2k/followers","following_url":"https://api.github.com/users/Nikita2k/following{/other_user}","gists_url":"https://api.github.com/users/Nikita2k/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita2k/subscriptions","organizations_url":"https://api.github.com/users/Nikita2k/orgs","repos_url":"https://api.github.com/users/Nikita2k/repos","events_url":"https://api.github.com/users/Nikita2k/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita2k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-01T14:27:23Z","updated_at":"2016-02-02T09:02:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Swinject/Swinject/pulls/58","html_url":"https://github.com/Swinject/Swinject/pull/58","diff_url":"https://github.com/Swinject/Swinject/pull/58.diff","patch_url":"https://github.com/Swinject/Swinject/pull/58.patch"},"body":"Consider code:\r\n\r\n```\r\n// MyFile.swift\r\n\r\nfunc getMyAssembler(parentAssembler: Assembler?) -> Assembler {\r\n   if let parent = parentAssembler {\r\n        return Assembler(parentAssembler: parent)\r\n   } else {\r\n        return Assembler() \r\n   }\r\n}\r\n```\r\n\r\nThe goal of PR is to simplify this function to: \r\n```\r\nfunc getMyAssembler(parentAssembler: Assembler?) -> Assembler {\r\n     return Assembler(parentAssembler: parent)\r\n}\r\n```\r\n\r\nThis is the PR I've mentioned here: https://github.com/Nikita2k/SwiftViper/issues/1"},"comment":{"url":"https://api.github.com/repos/Swinject/Swinject/issues/comments/178456334","html_url":"https://github.com/Swinject/Swinject/pull/58#issuecomment-178456334","issue_url":"https://api.github.com/repos/Swinject/Swinject/issues/58","id":178456334,"user":{"login":"yoichitgy","id":965994,"avatar_url":"https://avatars.githubusercontent.com/u/965994?v=3","gravatar_id":"","url":"https://api.github.com/users/yoichitgy","html_url":"https://github.com/yoichitgy","followers_url":"https://api.github.com/users/yoichitgy/followers","following_url":"https://api.github.com/users/yoichitgy/following{/other_user}","gists_url":"https://api.github.com/users/yoichitgy/gists{/gist_id}","starred_url":"https://api.github.com/users/yoichitgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoichitgy/subscriptions","organizations_url":"https://api.github.com/users/yoichitgy/orgs","repos_url":"https://api.github.com/users/yoichitgy/repos","events_url":"https://api.github.com/users/yoichitgy/events{/privacy}","received_events_url":"https://api.github.com/users/yoichitgy/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T09:02:57Z","updated_at":"2016-02-02T09:02:57Z","body":"In the same way, my design of `Container.init(parent: Container? = nil)` might be a mistake."}}