{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/5571","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/5571/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/5571/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/5571/events","html_url":"https://github.com/JuliaLang/julia/issues/5571","id":26355302,"number":5571,"title":"Function chaining","user":{"login":"shelakel","id":1434829,"avatar_url":"https://avatars.githubusercontent.com/u/1434829?v=3","gravatar_id":"","url":"https://api.github.com/users/shelakel","html_url":"https://github.com/shelakel","followers_url":"https://api.github.com/users/shelakel/followers","following_url":"https://api.github.com/users/shelakel/following{/other_user}","gists_url":"https://api.github.com/users/shelakel/gists{/gist_id}","starred_url":"https://api.github.com/users/shelakel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelakel/subscriptions","organizations_url":"https://api.github.com/users/shelakel/orgs","repos_url":"https://api.github.com/users/shelakel/repos","events_url":"https://api.github.com/users/shelakel/events{/privacy}","received_events_url":"https://api.github.com/users/shelakel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":100,"created_at":"2014-01-27T14:16:55Z","updated_at":"2015-11-17T01:45:41Z","closed_at":null,"body":"Would it be possible to allow calling any function on Any so that the value is passed to the function as the first parameter and the parameters passed to the function call on the value is added afterwards?\r\nex.\r\n\r\n    sum(a::Int, b::Int) -> a + b\r\n\r\n    a = 1\r\n    sum(1, 2) # = 3\r\n    a.sum(2) # = 3 or\r\n    1.sum(2) # = 3\r\n\r\nIs it possible to indicate in a deterministic way what a function will return in order to avoid run time exceptions?"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/157234594","html_url":"https://github.com/JuliaLang/julia/issues/5571#issuecomment-157234594","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/5571","id":157234594,"user":{"login":"StefanKarpinski","id":153596,"avatar_url":"https://avatars.githubusercontent.com/u/153596?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanKarpinski","html_url":"https://github.com/StefanKarpinski","followers_url":"https://api.github.com/users/StefanKarpinski/followers","following_url":"https://api.github.com/users/StefanKarpinski/following{/other_user}","gists_url":"https://api.github.com/users/StefanKarpinski/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanKarpinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanKarpinski/subscriptions","organizations_url":"https://api.github.com/users/StefanKarpinski/orgs","repos_url":"https://api.github.com/users/StefanKarpinski/repos","events_url":"https://api.github.com/users/StefanKarpinski/events{/privacy}","received_events_url":"https://api.github.com/users/StefanKarpinski/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T01:45:41Z","updated_at":"2015-11-17T01:45:41Z","body":"Ok, I think I get the rule, having read some of that Dylan documentation, but I have to wonder about having `map(_ + 2, v)` work but `map(2*_ + 2, v)` not work."}}