{"action":"created","comment":{"url":"https://api.github.com/repos/golo-lang/golo-lang/pulls/comments/25847132","id":25847132,"diff_hunk":"@@ -1618,4 +1610,32 @@ public void banged() throws Throwable {\n     assertThat(result, not((Object)42));\n \n   }\n+\n+  @Test\n+  public void test_named_parameters() throws Throwable {","path":"src/test/java/fr/insalyon/citi/golo/compiler/CompileAndRunTest.java","position":66,"original_position":66,"commit_id":"603ed6b7ede7078572bb7260c9bf8a61dfc22725","original_commit_id":"05a527dc76ec339c7761af416f8a38b010e96d0d","user":{"login":"danielpetisme","id":593564,"avatar_url":"https://avatars.githubusercontent.com/u/593564?v=3","gravatar_id":"","url":"https://api.github.com/users/danielpetisme","html_url":"https://github.com/danielpetisme","followers_url":"https://api.github.com/users/danielpetisme/followers","following_url":"https://api.github.com/users/danielpetisme/following{/other_user}","gists_url":"https://api.github.com/users/danielpetisme/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpetisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpetisme/subscriptions","organizations_url":"https://api.github.com/users/danielpetisme/orgs","repos_url":"https://api.github.com/users/danielpetisme/repos","events_url":"https://api.github.com/users/danielpetisme/events{/privacy}","received_events_url":"https://api.github.com/users/danielpetisme/received_events","type":"User","site_admin":false},"body":"> There are only two hard things in Computer Science: cache invalidation and naming things.\r\n> \r\n> -- Phil Karlton\r\n\r\nAny idea ? is not a parsing issue, an IR issue ?","created_at":"2015-03-05T08:37:17Z","updated_at":"2015-03-05T08:37:17Z","html_url":"https://github.com/golo-lang/golo-lang/pull/250#discussion_r25847132","pull_request_url":"https://api.github.com/repos/golo-lang/golo-lang/pulls/250","_links":{"self":{"href":"https://api.github.com/repos/golo-lang/golo-lang/pulls/comments/25847132"},"html":{"href":"https://github.com/golo-lang/golo-lang/pull/250#discussion_r25847132"},"pull_request":{"href":"https://api.github.com/repos/golo-lang/golo-lang/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/golo-lang/golo-lang/pulls/250","id":30423192,"html_url":"https://github.com/golo-lang/golo-lang/pull/250","diff_url":"https://github.com/golo-lang/golo-lang/pull/250.diff","patch_url":"https://github.com/golo-lang/golo-lang/pull/250.patch","issue_url":"https://api.github.com/repos/golo-lang/golo-lang/issues/250","number":250,"state":"open","locked":false,"title":"Named arguments","user":{"login":"danielpetisme","id":593564,"avatar_url":"https://avatars.githubusercontent.com/u/593564?v=3","gravatar_id":"","url":"https://api.github.com/users/danielpetisme","html_url":"https://github.com/danielpetisme","followers_url":"https://api.github.com/users/danielpetisme/followers","following_url":"https://api.github.com/users/danielpetisme/following{/other_user}","gists_url":"https://api.github.com/users/danielpetisme/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpetisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpetisme/subscriptions","organizations_url":"https://api.github.com/users/danielpetisme/orgs","repos_url":"https://api.github.com/users/danielpetisme/repos","events_url":"https://api.github.com/users/danielpetisme/events{/privacy}","received_events_url":"https://api.github.com/users/danielpetisme/received_events","type":"User","site_admin":false},"body":"First of all a bit of vocabulary, a *parameter* (or _formal parameter_) representents the identifier used during the function definition\r\n````\r\nfunction min = |a, b| -> ...\r\n````\r\n`a` and `b` are *parameters*\r\nAn *argument* (or _actual parameter_) represents the value used during the function invocation\r\n````\r\nmin(1,2)\r\n````\r\n`1` and `2` are *arguments*\r\n\r\nSo far, Golo runtime relied on the arguments order to find the target function/method to invoke. With named parameters, the developers do not have to care about the argument order, plus it permits to increase the verbosity of the function invocations.\r\n````\r\nfunction join = |delimiter, values...| ->\r\n\r\n#change argument order + varargs support\r\njoin(values = array[\"Foo\", \"Bar\"], delimiter=\",\")\r\n````\r\n\r\n[Show me more!](https://github.com/golo-lang/golo-lang/blob/bdbcad0caa81a44558377f9cfb2cdc8edf37443f/doc/functions.asciidoc#named-parameters)","created_at":"2015-03-03T23:17:11Z","updated_at":"2015-03-05T08:37:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"107bcb1485215ec5866c026d72b36393b8928e4f","assignee":null,"milestone":{"url":"https://api.github.com/repos/golo-lang/golo-lang/milestones/13","html_url":"https://github.com/golo-lang/golo-lang/milestones/3.0.0","labels_url":"https://api.github.com/repos/golo-lang/golo-lang/milestones/13/labels","id":764265,"number":13,"title":"3.0.0","description":"Golo 3.0.0","creator":{"login":"jponge","id":25961,"avatar_url":"https://avatars.githubusercontent.com/u/25961?v=3","gravatar_id":"","url":"https://api.github.com/users/jponge","html_url":"https://github.com/jponge","followers_url":"https://api.github.com/users/jponge/followers","following_url":"https://api.github.com/users/jponge/following{/other_user}","gists_url":"https://api.github.com/users/jponge/gists{/gist_id}","starred_url":"https://api.github.com/users/jponge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jponge/subscriptions","organizations_url":"https://api.github.com/users/jponge/orgs","repos_url":"https://api.github.com/users/jponge/repos","events_url":"https://api.github.com/users/jponge/events{/privacy}","received_events_url":"https://api.github.com/users/jponge/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2014-08-25T07:43:41Z","updated_at":"2015-03-04T22:31:23Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/golo-lang/golo-lang/pulls/250/commits","review_comments_url":"https://api.github.com/repos/golo-lang/golo-lang/pulls/250/comments","review_comment_url":"https://api.github.com/repos/golo-lang/golo-lang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/golo-lang/golo-lang/issues/250/comments","statuses_url":"https://api.github.com/repos/golo-lang/golo-lang/statuses/603ed6b7ede7078572bb7260c9bf8a61dfc22725","head":{"label":"danielpetisme:wip/named-arguments","ref":"wip/named-arguments","sha":"603ed6b7ede7078572bb7260c9bf8a61dfc22725","user":{"login":"danielpetisme","id":593564,"avatar_url":"https://avatars.githubusercontent.com/u/593564?v=3","gravatar_id":"","url":"https://api.github.com/users/danielpetisme","html_url":"https://github.com/danielpetisme","followers_url":"https://api.github.com/users/danielpetisme/followers","following_url":"https://api.github.com/users/danielpetisme/following{/other_user}","gists_url":"https://api.github.com/users/danielpetisme/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpetisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpetisme/subscriptions","organizations_url":"https://api.github.com/users/danielpetisme/orgs","repos_url":"https://api.github.com/users/danielpetisme/repos","events_url":"https://api.github.com/users/danielpetisme/events{/privacy}","received_events_url":"https://api.github.com/users/danielpetisme/received_events","type":"User","site_admin":false},"repo":{"id":9587099,"name":"golo-lang","full_name":"danielpetisme/golo-lang","owner":{"login":"danielpetisme","id":593564,"avatar_url":"https://avatars.githubusercontent.com/u/593564?v=3","gravatar_id":"","url":"https://api.github.com/users/danielpetisme","html_url":"https://github.com/danielpetisme","followers_url":"https://api.github.com/users/danielpetisme/followers","following_url":"https://api.github.com/users/danielpetisme/following{/other_user}","gists_url":"https://api.github.com/users/danielpetisme/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpetisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpetisme/subscriptions","organizations_url":"https://api.github.com/users/danielpetisme/orgs","repos_url":"https://api.github.com/users/danielpetisme/repos","events_url":"https://api.github.com/users/danielpetisme/events{/privacy}","received_events_url":"https://api.github.com/users/danielpetisme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielpetisme/golo-lang","description":"Golo - a lightweight dynamic language for the JVM","fork":true,"url":"https://api.github.com/repos/danielpetisme/golo-lang","forks_url":"https://api.github.com/repos/danielpetisme/golo-lang/forks","keys_url":"https://api.github.com/repos/danielpetisme/golo-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielpetisme/golo-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielpetisme/golo-lang/teams","hooks_url":"https://api.github.com/repos/danielpetisme/golo-lang/hooks","issue_events_url":"https://api.github.com/repos/danielpetisme/golo-lang/issues/events{/number}","events_url":"https://api.github.com/repos/danielpetisme/golo-lang/events","assignees_url":"https://api.github.com/repos/danielpetisme/golo-lang/assignees{/user}","branches_url":"https://api.github.com/repos/danielpetisme/golo-lang/branches{/branch}","tags_url":"https://api.github.com/repos/danielpetisme/golo-lang/tags","blobs_url":"https://api.github.com/repos/danielpetisme/golo-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielpetisme/golo-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielpetisme/golo-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielpetisme/golo-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielpetisme/golo-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/danielpetisme/golo-lang/languages","stargazers_url":"https://api.github.com/repos/danielpetisme/golo-lang/stargazers","contributors_url":"https://api.github.com/repos/danielpetisme/golo-lang/contributors","subscribers_url":"https://api.github.com/repos/danielpetisme/golo-lang/subscribers","subscription_url":"https://api.github.com/repos/danielpetisme/golo-lang/subscription","commits_url":"https://api.github.com/repos/danielpetisme/golo-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielpetisme/golo-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielpetisme/golo-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielpetisme/golo-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielpetisme/golo-lang/contents/{+path}","compare_url":"https://api.github.com/repos/danielpetisme/golo-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielpetisme/golo-lang/merges","archive_url":"https://api.github.com/repos/danielpetisme/golo-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielpetisme/golo-lang/downloads","issues_url":"https://api.github.com/repos/danielpetisme/golo-lang/issues{/number}","pulls_url":"https://api.github.com/repos/danielpetisme/golo-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/danielpetisme/golo-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/danielpetisme/golo-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielpetisme/golo-lang/labels{/name}","releases_url":"https://api.github.com/repos/danielpetisme/golo-lang/releases{/id}","created_at":"2013-04-21T23:00:15Z","updated_at":"2015-03-03T21:28:10Z","pushed_at":"2015-03-04T19:02:59Z","git_url":"git://github.com/danielpetisme/golo-lang.git","ssh_url":"git@github.com:danielpetisme/golo-lang.git","clone_url":"https://github.com/danielpetisme/golo-lang.git","svn_url":"https://github.com/danielpetisme/golo-lang","homepage":"http://golo-lang.org/","size":3980,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"golo-lang:master","ref":"master","sha":"a84a2877de593aa80039cb8dbf552b4334f7f402","user":{"login":"golo-lang","id":3098632,"avatar_url":"https://avatars.githubusercontent.com/u/3098632?v=3","gravatar_id":"","url":"https://api.github.com/users/golo-lang","html_url":"https://github.com/golo-lang","followers_url":"https://api.github.com/users/golo-lang/followers","following_url":"https://api.github.com/users/golo-lang/following{/other_user}","gists_url":"https://api.github.com/users/golo-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/golo-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golo-lang/subscriptions","organizations_url":"https://api.github.com/users/golo-lang/orgs","repos_url":"https://api.github.com/users/golo-lang/repos","events_url":"https://api.github.com/users/golo-lang/events{/privacy}","received_events_url":"https://api.github.com/users/golo-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":8340103,"name":"golo-lang","full_name":"golo-lang/golo-lang","owner":{"login":"golo-lang","id":3098632,"avatar_url":"https://avatars.githubusercontent.com/u/3098632?v=3","gravatar_id":"","url":"https://api.github.com/users/golo-lang","html_url":"https://github.com/golo-lang","followers_url":"https://api.github.com/users/golo-lang/followers","following_url":"https://api.github.com/users/golo-lang/following{/other_user}","gists_url":"https://api.github.com/users/golo-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/golo-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golo-lang/subscriptions","organizations_url":"https://api.github.com/users/golo-lang/orgs","repos_url":"https://api.github.com/users/golo-lang/repos","events_url":"https://api.github.com/users/golo-lang/events{/privacy}","received_events_url":"https://api.github.com/users/golo-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/golo-lang/golo-lang","description":"Golo - a lightweight dynamic language for the JVM.","fork":false,"url":"https://api.github.com/repos/golo-lang/golo-lang","forks_url":"https://api.github.com/repos/golo-lang/golo-lang/forks","keys_url":"https://api.github.com/repos/golo-lang/golo-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/golo-lang/golo-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/golo-lang/golo-lang/teams","hooks_url":"https://api.github.com/repos/golo-lang/golo-lang/hooks","issue_events_url":"https://api.github.com/repos/golo-lang/golo-lang/issues/events{/number}","events_url":"https://api.github.com/repos/golo-lang/golo-lang/events","assignees_url":"https://api.github.com/repos/golo-lang/golo-lang/assignees{/user}","branches_url":"https://api.github.com/repos/golo-lang/golo-lang/branches{/branch}","tags_url":"https://api.github.com/repos/golo-lang/golo-lang/tags","blobs_url":"https://api.github.com/repos/golo-lang/golo-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/golo-lang/golo-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/golo-lang/golo-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/golo-lang/golo-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/golo-lang/golo-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/golo-lang/golo-lang/languages","stargazers_url":"https://api.github.com/repos/golo-lang/golo-lang/stargazers","contributors_url":"https://api.github.com/repos/golo-lang/golo-lang/contributors","subscribers_url":"https://api.github.com/repos/golo-lang/golo-lang/subscribers","subscription_url":"https://api.github.com/repos/golo-lang/golo-lang/subscription","commits_url":"https://api.github.com/repos/golo-lang/golo-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/golo-lang/golo-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/golo-lang/golo-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/golo-lang/golo-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/golo-lang/golo-lang/contents/{+path}","compare_url":"https://api.github.com/repos/golo-lang/golo-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/golo-lang/golo-lang/merges","archive_url":"https://api.github.com/repos/golo-lang/golo-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/golo-lang/golo-lang/downloads","issues_url":"https://api.github.com/repos/golo-lang/golo-lang/issues{/number}","pulls_url":"https://api.github.com/repos/golo-lang/golo-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/golo-lang/golo-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/golo-lang/golo-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/golo-lang/golo-lang/labels{/name}","releases_url":"https://api.github.com/repos/golo-lang/golo-lang/releases{/id}","created_at":"2013-02-21T17:25:34Z","updated_at":"2015-03-03T13:03:56Z","pushed_at":"2015-03-03T13:03:56Z","git_url":"git://github.com/golo-lang/golo-lang.git","ssh_url":"git@github.com:golo-lang/golo-lang.git","clone_url":"https://github.com/golo-lang/golo-lang.git","svn_url":"https://github.com/golo-lang/golo-lang","homepage":"http://golo-lang.org/","size":5828,"stargazers_count":89,"watchers_count":89,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":20,"forks":32,"open_issues":20,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/golo-lang/golo-lang/pulls/250"},"html":{"href":"https://github.com/golo-lang/golo-lang/pull/250"},"issue":{"href":"https://api.github.com/repos/golo-lang/golo-lang/issues/250"},"comments":{"href":"https://api.github.com/repos/golo-lang/golo-lang/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/golo-lang/golo-lang/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/golo-lang/golo-lang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/golo-lang/golo-lang/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/golo-lang/golo-lang/statuses/603ed6b7ede7078572bb7260c9bf8a61dfc22725"}}}}