{"action":"created","issue":{"url":"https://api.github.com/repos/ooc-lang/rock/issues/973","repository_url":"https://api.github.com/repos/ooc-lang/rock","labels_url":"https://api.github.com/repos/ooc-lang/rock/issues/973/labels{/name}","comments_url":"https://api.github.com/repos/ooc-lang/rock/issues/973/comments","events_url":"https://api.github.com/repos/ooc-lang/rock/issues/973/events","html_url":"https://github.com/ooc-lang/rock/issues/973","id":133112578,"number":973,"title":"Add a simple way of making chained method calls","user":{"login":"h3l1xc","id":12485559,"avatar_url":"https://avatars.githubusercontent.com/u/12485559?v=3","gravatar_id":"","url":"https://api.github.com/users/h3l1xc","html_url":"https://github.com/h3l1xc","followers_url":"https://api.github.com/users/h3l1xc/followers","following_url":"https://api.github.com/users/h3l1xc/following{/other_user}","gists_url":"https://api.github.com/users/h3l1xc/gists{/gist_id}","starred_url":"https://api.github.com/users/h3l1xc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3l1xc/subscriptions","organizations_url":"https://api.github.com/users/h3l1xc/orgs","repos_url":"https://api.github.com/users/h3l1xc/repos","events_url":"https://api.github.com/users/h3l1xc/events{/privacy}","received_events_url":"https://api.github.com/users/h3l1xc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T23:12:30Z","updated_at":"2016-02-11T23:26:29Z","closed_at":null,"body":"It will make code more concise. It's already possible, returning `this` from a method, but it prevents using the return value for something more useful. Here is an example:\r\n\r\n`apple := Fruit new() setColor(\"green\") $ setType(\"apple\")`\r\nHere `setType` doesn't refer to the return value of `setColor`, but instead to the last non-chained method (here it's `new`, so it refers to the new instance of Fruit)"},"comment":{"url":"https://api.github.com/repos/ooc-lang/rock/issues/comments/183100473","html_url":"https://github.com/ooc-lang/rock/issues/973#issuecomment-183100473","issue_url":"https://api.github.com/repos/ooc-lang/rock/issues/973","id":183100473,"user":{"login":"fasterthanlime","id":7998310,"avatar_url":"https://avatars.githubusercontent.com/u/7998310?v=3","gravatar_id":"","url":"https://api.github.com/users/fasterthanlime","html_url":"https://github.com/fasterthanlime","followers_url":"https://api.github.com/users/fasterthanlime/followers","following_url":"https://api.github.com/users/fasterthanlime/following{/other_user}","gists_url":"https://api.github.com/users/fasterthanlime/gists{/gist_id}","starred_url":"https://api.github.com/users/fasterthanlime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fasterthanlime/subscriptions","organizations_url":"https://api.github.com/users/fasterthanlime/orgs","repos_url":"https://api.github.com/users/fasterthanlime/repos","events_url":"https://api.github.com/users/fasterthanlime/events{/privacy}","received_events_url":"https://api.github.com/users/fasterthanlime/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T23:26:29Z","updated_at":"2016-02-11T23:26:29Z","body":"Isn't that exactly what `.` does ?"}}