{"action":"created","comment":{"url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/comments/87453037","pull_request_review_id":8066169,"id":87453037,"diff_hunk":"@@ -196,6 +196,19 @@ class Foo\n \n __Can I call using positional arguments but miss out the first one?__ No. If you use positional arguments they must be the first ones in the call.\n \n+## Chaining\n+\n+Method chaining allows you to chain calls on an object without requiring the method to return its receiver. The syntax to call a method and chain the receiver is `object.>method()`.\n+\n+```pony\n+primitive Printer\n+  fun print_two_strings(out: StdStream, s1: String, s2: String) =>\n+    out.>print(s1).print(s2)","path":"expressions/methods.md","position":11,"original_position":11,"commit_id":"209a3964624bb0c6378d3fb2ac030debf48d36a6","original_commit_id":"209a3964624bb0c6378d3fb2ac030debf48d36a6","user":{"login":"SeanTAllen","id":193596,"avatar_url":"https://avatars.githubusercontent.com/u/193596?v=3","gravatar_id":"","url":"https://api.github.com/users/SeanTAllen","html_url":"https://github.com/SeanTAllen","followers_url":"https://api.github.com/users/SeanTAllen/followers","following_url":"https://api.github.com/users/SeanTAllen/following{/other_user}","gists_url":"https://api.github.com/users/SeanTAllen/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanTAllen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanTAllen/subscriptions","organizations_url":"https://api.github.com/users/SeanTAllen/orgs","repos_url":"https://api.github.com/users/SeanTAllen/repos","events_url":"https://api.github.com/users/SeanTAllen/events{/privacy}","received_events_url":"https://api.github.com/users/SeanTAllen/received_events","type":"User","site_admin":false},"body":"so .> chains every call after that?\r\n\r\n\r\n","created_at":"2016-11-10T18:13:42Z","updated_at":"2016-11-10T18:13:42Z","html_url":"https://github.com/ponylang/pony-tutorial/pull/167#discussion_r87453037","pull_request_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/167","_links":{"self":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/comments/87453037"},"html":{"href":"https://github.com/ponylang/pony-tutorial/pull/167#discussion_r87453037"},"pull_request":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/167"}}},"pull_request":{"url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/167","id":93198892,"html_url":"https://github.com/ponylang/pony-tutorial/pull/167","diff_url":"https://github.com/ponylang/pony-tutorial/pull/167.diff","patch_url":"https://github.com/ponylang/pony-tutorial/pull/167.patch","issue_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/167","number":167,"state":"open","locked":false,"title":"Add method chaining explanation","user":{"login":"Praetonus","id":5193706,"avatar_url":"https://avatars.githubusercontent.com/u/5193706?v=3","gravatar_id":"","url":"https://api.github.com/users/Praetonus","html_url":"https://github.com/Praetonus","followers_url":"https://api.github.com/users/Praetonus/followers","following_url":"https://api.github.com/users/Praetonus/following{/other_user}","gists_url":"https://api.github.com/users/Praetonus/gists{/gist_id}","starred_url":"https://api.github.com/users/Praetonus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Praetonus/subscriptions","organizations_url":"https://api.github.com/users/Praetonus/orgs","repos_url":"https://api.github.com/users/Praetonus/repos","events_url":"https://api.github.com/users/Praetonus/events{/privacy}","received_events_url":"https://api.github.com/users/Praetonus/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T17:50:41Z","updated_at":"2016-11-10T18:13:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b98b7cd7d2f3fdbba7c67a65c9b13831ca313000","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/167/commits","review_comments_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/167/comments","review_comment_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/167/comments","statuses_url":"https://api.github.com/repos/ponylang/pony-tutorial/statuses/209a3964624bb0c6378d3fb2ac030debf48d36a6","head":{"label":"Praetonus:chaining","ref":"chaining","sha":"209a3964624bb0c6378d3fb2ac030debf48d36a6","user":{"login":"Praetonus","id":5193706,"avatar_url":"https://avatars.githubusercontent.com/u/5193706?v=3","gravatar_id":"","url":"https://api.github.com/users/Praetonus","html_url":"https://github.com/Praetonus","followers_url":"https://api.github.com/users/Praetonus/followers","following_url":"https://api.github.com/users/Praetonus/following{/other_user}","gists_url":"https://api.github.com/users/Praetonus/gists{/gist_id}","starred_url":"https://api.github.com/users/Praetonus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Praetonus/subscriptions","organizations_url":"https://api.github.com/users/Praetonus/orgs","repos_url":"https://api.github.com/users/Praetonus/repos","events_url":"https://api.github.com/users/Praetonus/events{/privacy}","received_events_url":"https://api.github.com/users/Praetonus/received_events","type":"User","site_admin":false},"repo":{"id":55150468,"name":"pony-tutorial","full_name":"Praetonus/pony-tutorial","owner":{"login":"Praetonus","id":5193706,"avatar_url":"https://avatars.githubusercontent.com/u/5193706?v=3","gravatar_id":"","url":"https://api.github.com/users/Praetonus","html_url":"https://github.com/Praetonus","followers_url":"https://api.github.com/users/Praetonus/followers","following_url":"https://api.github.com/users/Praetonus/following{/other_user}","gists_url":"https://api.github.com/users/Praetonus/gists{/gist_id}","starred_url":"https://api.github.com/users/Praetonus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Praetonus/subscriptions","organizations_url":"https://api.github.com/users/Praetonus/orgs","repos_url":"https://api.github.com/users/Praetonus/repos","events_url":"https://api.github.com/users/Praetonus/events{/privacy}","received_events_url":"https://api.github.com/users/Praetonus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Praetonus/pony-tutorial","description":"Tutorial for the Pony programming language","fork":true,"url":"https://api.github.com/repos/Praetonus/pony-tutorial","forks_url":"https://api.github.com/repos/Praetonus/pony-tutorial/forks","keys_url":"https://api.github.com/repos/Praetonus/pony-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Praetonus/pony-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Praetonus/pony-tutorial/teams","hooks_url":"https://api.github.com/repos/Praetonus/pony-tutorial/hooks","issue_events_url":"https://api.github.com/repos/Praetonus/pony-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/Praetonus/pony-tutorial/events","assignees_url":"https://api.github.com/repos/Praetonus/pony-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/Praetonus/pony-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/Praetonus/pony-tutorial/tags","blobs_url":"https://api.github.com/repos/Praetonus/pony-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Praetonus/pony-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Praetonus/pony-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/Praetonus/pony-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Praetonus/pony-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/Praetonus/pony-tutorial/languages","stargazers_url":"https://api.github.com/repos/Praetonus/pony-tutorial/stargazers","contributors_url":"https://api.github.com/repos/Praetonus/pony-tutorial/contributors","subscribers_url":"https://api.github.com/repos/Praetonus/pony-tutorial/subscribers","subscription_url":"https://api.github.com/repos/Praetonus/pony-tutorial/subscription","commits_url":"https://api.github.com/repos/Praetonus/pony-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/Praetonus/pony-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/Praetonus/pony-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/Praetonus/pony-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/Praetonus/pony-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/Praetonus/pony-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Praetonus/pony-tutorial/merges","archive_url":"https://api.github.com/repos/Praetonus/pony-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Praetonus/pony-tutorial/downloads","issues_url":"https://api.github.com/repos/Praetonus/pony-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/Praetonus/pony-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/Praetonus/pony-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/Praetonus/pony-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Praetonus/pony-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/Praetonus/pony-tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/Praetonus/pony-tutorial/deployments","created_at":"2016-03-31T12:54:56Z","updated_at":"2016-03-22T12:02:03Z","pushed_at":"2016-11-10T17:50:11Z","git_url":"git://github.com/Praetonus/pony-tutorial.git","ssh_url":"git@github.com:Praetonus/pony-tutorial.git","clone_url":"https://github.com/Praetonus/pony-tutorial.git","svn_url":"https://github.com/Praetonus/pony-tutorial","homepage":null,"size":410,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ponylang:master","ref":"master","sha":"b7c93be579ad7ee5c67b2b428442063c64153321","user":{"login":"ponylang","id":12997238,"avatar_url":"https://avatars.githubusercontent.com/u/12997238?v=3","gravatar_id":"","url":"https://api.github.com/users/ponylang","html_url":"https://github.com/ponylang","followers_url":"https://api.github.com/users/ponylang/followers","following_url":"https://api.github.com/users/ponylang/following{/other_user}","gists_url":"https://api.github.com/users/ponylang/gists{/gist_id}","starred_url":"https://api.github.com/users/ponylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponylang/subscriptions","organizations_url":"https://api.github.com/users/ponylang/orgs","repos_url":"https://api.github.com/users/ponylang/repos","events_url":"https://api.github.com/users/ponylang/events{/privacy}","received_events_url":"https://api.github.com/users/ponylang/received_events","type":"Organization","site_admin":false},"repo":{"id":29130823,"name":"pony-tutorial","full_name":"ponylang/pony-tutorial","owner":{"login":"ponylang","id":12997238,"avatar_url":"https://avatars.githubusercontent.com/u/12997238?v=3","gravatar_id":"","url":"https://api.github.com/users/ponylang","html_url":"https://github.com/ponylang","followers_url":"https://api.github.com/users/ponylang/followers","following_url":"https://api.github.com/users/ponylang/following{/other_user}","gists_url":"https://api.github.com/users/ponylang/gists{/gist_id}","starred_url":"https://api.github.com/users/ponylang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponylang/subscriptions","organizations_url":"https://api.github.com/users/ponylang/orgs","repos_url":"https://api.github.com/users/ponylang/repos","events_url":"https://api.github.com/users/ponylang/events{/privacy}","received_events_url":"https://api.github.com/users/ponylang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ponylang/pony-tutorial","description":"Tutorial for the Pony programming language","fork":false,"url":"https://api.github.com/repos/ponylang/pony-tutorial","forks_url":"https://api.github.com/repos/ponylang/pony-tutorial/forks","keys_url":"https://api.github.com/repos/ponylang/pony-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ponylang/pony-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ponylang/pony-tutorial/teams","hooks_url":"https://api.github.com/repos/ponylang/pony-tutorial/hooks","issue_events_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/ponylang/pony-tutorial/events","assignees_url":"https://api.github.com/repos/ponylang/pony-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/ponylang/pony-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/ponylang/pony-tutorial/tags","blobs_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ponylang/pony-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/ponylang/pony-tutorial/languages","stargazers_url":"https://api.github.com/repos/ponylang/pony-tutorial/stargazers","contributors_url":"https://api.github.com/repos/ponylang/pony-tutorial/contributors","subscribers_url":"https://api.github.com/repos/ponylang/pony-tutorial/subscribers","subscription_url":"https://api.github.com/repos/ponylang/pony-tutorial/subscription","commits_url":"https://api.github.com/repos/ponylang/pony-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/ponylang/pony-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/ponylang/pony-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/ponylang/pony-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/ponylang/pony-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ponylang/pony-tutorial/merges","archive_url":"https://api.github.com/repos/ponylang/pony-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ponylang/pony-tutorial/downloads","issues_url":"https://api.github.com/repos/ponylang/pony-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/ponylang/pony-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/ponylang/pony-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/ponylang/pony-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ponylang/pony-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/ponylang/pony-tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/ponylang/pony-tutorial/deployments","created_at":"2015-01-12T10:39:37Z","updated_at":"2016-11-09T13:00:47Z","pushed_at":"2016-11-10T17:50:41Z","git_url":"git://github.com/ponylang/pony-tutorial.git","ssh_url":"git@github.com:ponylang/pony-tutorial.git","clone_url":"https://github.com/ponylang/pony-tutorial.git","svn_url":"https://github.com/ponylang/pony-tutorial","homepage":"http://tutorial.ponylang.org","size":470,"stargazers_count":44,"watchers_count":44,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":29,"forks":39,"open_issues":29,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/167"},"html":{"href":"https://github.com/ponylang/pony-tutorial/pull/167"},"issue":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/issues/167"},"comments":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/ponylang/pony-tutorial/statuses/209a3964624bb0c6378d3fb2ac030debf48d36a6"}}}}
{"actor":{"display_login":"SeanTAllen"}}