{"action":"created","issue":{"url":"https://api.github.com/repos/SnapKit/SnapKit/issues/127","labels_url":"https://api.github.com/repos/SnapKit/SnapKit/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/SnapKit/SnapKit/issues/127/comments","events_url":"https://api.github.com/repos/SnapKit/SnapKit/issues/127/events","html_url":"https://github.com/SnapKit/SnapKit/pull/127","id":94603522,"number":127,"title":"Add source file location to debug description","user":{"login":"aleffert","id":114396,"avatar_url":"https://avatars.githubusercontent.com/u/114396?v=3","gravatar_id":"","url":"https://api.github.com/users/aleffert","html_url":"https://github.com/aleffert","followers_url":"https://api.github.com/users/aleffert/followers","following_url":"https://api.github.com/users/aleffert/following{/other_user}","gists_url":"https://api.github.com/users/aleffert/gists{/gist_id}","starred_url":"https://api.github.com/users/aleffert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleffert/subscriptions","organizations_url":"https://api.github.com/users/aleffert/orgs","repos_url":"https://api.github.com/users/aleffert/repos","events_url":"https://api.github.com/users/aleffert/events{/privacy}","received_events_url":"https://api.github.com/users/aleffert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-12T22:01:13Z","updated_at":"2015-07-13T23:11:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SnapKit/SnapKit/pulls/127","html_url":"https://github.com/SnapKit/SnapKit/pull/127","diff_url":"https://github.com/SnapKit/SnapKit/pull/127.diff","patch_url":"https://github.com/SnapKit/SnapKit/pull/127.patch"},"body":"Before:\r\n```\r\n<<SnapKit.LayoutConstraint:0x7f943483ea00> <UIView:0x7f9432ff2110>.width == 120.0>\"\r\n```\r\n\r\nAfter:\r\n```\r\n<<SnapKit.LayoutConstraint:0x7f943483ea00@Tests.swift:30> <UIView:0x7f9432ff2110>.width == 120.0>\"\r\n```\r\n\r\nThe main code changes are:\r\n- Rejiggering the ``ConstraintDescription`` hierarchy to be based on\r\n  classes instead of protocols. This was necessary since protocols can't\r\n  expose methods with default arguments which are used for picking up\r\n  the location via ``__FILE__`` and ``__LINE__``.\r\n- Propagating SourceLocation information from the\r\n  ``ConstraintDescription`` to the ``ConcreteConstraint`` to the\r\n  ``description`` method.\r\n- Adding support for NSLayoutConstraint's ``identifier`` property"},"comment":{"url":"https://api.github.com/repos/SnapKit/SnapKit/issues/comments/121086860","html_url":"https://github.com/SnapKit/SnapKit/pull/127#issuecomment-121086860","issue_url":"https://api.github.com/repos/SnapKit/SnapKit/issues/127","id":121086860,"user":{"login":"robertjpayne","id":214288,"avatar_url":"https://avatars.githubusercontent.com/u/214288?v=3","gravatar_id":"","url":"https://api.github.com/users/robertjpayne","html_url":"https://github.com/robertjpayne","followers_url":"https://api.github.com/users/robertjpayne/followers","following_url":"https://api.github.com/users/robertjpayne/following{/other_user}","gists_url":"https://api.github.com/users/robertjpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/robertjpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertjpayne/subscriptions","organizations_url":"https://api.github.com/users/robertjpayne/orgs","repos_url":"https://api.github.com/users/robertjpayne/repos","events_url":"https://api.github.com/users/robertjpayne/events{/privacy}","received_events_url":"https://api.github.com/users/robertjpayne/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T23:11:05Z","updated_at":"2015-07-13T23:11:05Z","body":"@aleffert hmm yea it works but I'm also unsure on polluting the method namespace, I know that it's default values so the user doesn't have to fill them out but by default auto complete on my end is showing them and you have to manually delete them out. It's too bad we can't have \"Hidden\" default params to do something like this it really is a great feature to have"}}