{"action":"created","issue":{"url":"https://api.github.com/repos/apache/groovy/issues/174","repository_url":"https://api.github.com/repos/apache/groovy","labels_url":"https://api.github.com/repos/apache/groovy/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/apache/groovy/issues/174/comments","events_url":"https://api.github.com/repos/apache/groovy/issues/174/events","html_url":"https://github.com/apache/groovy/pull/174","id":114493314,"number":174,"title":"Function same as `with`, but returns the incoming object","user":{"login":"christoph-frick","id":1788100,"avatar_url":"https://avatars.githubusercontent.com/u/1788100?v=3","gravatar_id":"","url":"https://api.github.com/users/christoph-frick","html_url":"https://github.com/christoph-frick","followers_url":"https://api.github.com/users/christoph-frick/followers","following_url":"https://api.github.com/users/christoph-frick/following{/other_user}","gists_url":"https://api.github.com/users/christoph-frick/gists{/gist_id}","starred_url":"https://api.github.com/users/christoph-frick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christoph-frick/subscriptions","organizations_url":"https://api.github.com/users/christoph-frick/orgs","repos_url":"https://api.github.com/users/christoph-frick/repos","events_url":"https://api.github.com/users/christoph-frick/events{/privacy}","received_events_url":"https://api.github.com/users/christoph-frick/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2015-11-01T21:09:46Z","updated_at":"2016-11-15T22:56:27Z","closed_at":"2016-11-15T22:55:15Z","pull_request":{"url":"https://api.github.com/repos/apache/groovy/pulls/174","html_url":"https://github.com/apache/groovy/pull/174","diff_url":"https://github.com/apache/groovy/pull/174.diff","patch_url":"https://github.com/apache/groovy/pull/174.patch"},"body":"My usecase for `with` is >80% to (ab)use it as some sort of builder.  Since I end up putting close to always `(return) it` at the end of my closure: ~~`doto`~~ `tap` is a slight variation of `with`, that just returns the incoming object.  ~~[`doto` is a loanword from clojure](http://clojuredocs.org/clojure.core/doto),~~ `tap` is a loanword from Ruby (see comments below) where it does the same and I could not find a naming scheme for groovy, that would not involve renaming `with` (which is impossible).\r\n"},"comment":{"url":"https://api.github.com/repos/apache/groovy/issues/comments/260797190","html_url":"https://github.com/apache/groovy/pull/174#issuecomment-260797190","issue_url":"https://api.github.com/repos/apache/groovy/issues/174","id":260797190,"user":{"login":"paulk-asert","id":280016,"avatar_url":"https://avatars.githubusercontent.com/u/280016?v=3","gravatar_id":"","url":"https://api.github.com/users/paulk-asert","html_url":"https://github.com/paulk-asert","followers_url":"https://api.github.com/users/paulk-asert/followers","following_url":"https://api.github.com/users/paulk-asert/following{/other_user}","gists_url":"https://api.github.com/users/paulk-asert/gists{/gist_id}","starred_url":"https://api.github.com/users/paulk-asert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulk-asert/subscriptions","organizations_url":"https://api.github.com/users/paulk-asert/orgs","repos_url":"https://api.github.com/users/paulk-asert/repos","events_url":"https://api.github.com/users/paulk-asert/events{/privacy}","received_events_url":"https://api.github.com/users/paulk-asert/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T22:56:26Z","updated_at":"2016-11-15T22:56:26Z","body":"Proposed PR and some minor tweaks applied. Thanks everyone for the contribution, discussion and patience."}}
{"actor":{"display_login":"paulk-asert"}}