{"action":"created","issue":{"url":"https://api.github.com/repos/zostay/perl6-KnottyPair/issues/1","labels_url":"https://api.github.com/repos/zostay/perl6-KnottyPair/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/zostay/perl6-KnottyPair/issues/1/comments","events_url":"https://api.github.com/repos/zostay/perl6-KnottyPair/issues/1/events","html_url":"https://github.com/zostay/perl6-KnottyPair/issues/1","id":92546651,"number":1,"title":"Suspect use of \"Normal\" in README (OR fn(a=>1) vs fn((a=>1)) vs fn('a'=>1) vs fn('a'=x>1))","user":{"login":"raiph","id":1247185,"avatar_url":"https://avatars.githubusercontent.com/u/1247185?v=3","gravatar_id":"","url":"https://api.github.com/users/raiph","html_url":"https://github.com/raiph","followers_url":"https://api.github.com/users/raiph/followers","following_url":"https://api.github.com/users/raiph/following{/other_user}","gists_url":"https://api.github.com/users/raiph/gists{/gist_id}","starred_url":"https://api.github.com/users/raiph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raiph/subscriptions","organizations_url":"https://api.github.com/users/raiph/orgs","repos_url":"https://api.github.com/users/raiph/repos","events_url":"https://api.github.com/users/raiph/events{/privacy}","received_events_url":"https://api.github.com/users/raiph/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-02T04:41:02Z","updated_at":"2015-09-26T04:03:07Z","closed_at":"2015-09-26T04:03:07Z","body":"The README suggests \"Normal pairs are passed through as named args\". But:\r\n \r\n    slurpy-test('a' => 1, 'b' => 2, 'c' => 3);\r\n    #> a = [:a(1), :b(2), :c(3)]<>\r\n    #> h = {}<>\r\n    slurpy-test((a => 1, b => 2, c => 3));\r\n    #> a = [:a(1), :b(2), :c(3)]<>\r\n    #> h = {}<>"},"comment":{"url":"https://api.github.com/repos/zostay/perl6-KnottyPair/issues/comments/143396462","html_url":"https://github.com/zostay/perl6-KnottyPair/issues/1#issuecomment-143396462","issue_url":"https://api.github.com/repos/zostay/perl6-KnottyPair/issues/1","id":143396462,"user":{"login":"zostay","id":34711,"avatar_url":"https://avatars.githubusercontent.com/u/34711?v=3","gravatar_id":"","url":"https://api.github.com/users/zostay","html_url":"https://github.com/zostay","followers_url":"https://api.github.com/users/zostay/followers","following_url":"https://api.github.com/users/zostay/following{/other_user}","gists_url":"https://api.github.com/users/zostay/gists{/gist_id}","starred_url":"https://api.github.com/users/zostay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zostay/subscriptions","organizations_url":"https://api.github.com/users/zostay/orgs","repos_url":"https://api.github.com/users/zostay/repos","events_url":"https://api.github.com/users/zostay/events{/privacy}","received_events_url":"https://api.github.com/users/zostay/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T04:03:07Z","updated_at":"2015-09-26T04:03:07Z","body":"For the record, bare names imply named-argument conventions, so this is using named args in the first call and the second call, but is a list of Pairs in the third:\r\n\r\n```perl6\r\nsub slurpy-test(*@a, *%h) { dd @a; dd %h }\r\nsay \"one\"; slurpy-test(a => 1, b => 2);\r\nsay \"two\"; slurpy-test(:a(1), :b(2));\r\nsay \"three\"; slurpy-test('a' => 1, 'b' => 2);\r\n```\r\n\r\nThe output is:\r\n\r\n```perl6\r\none\r\n[]\r\n{:a(1), :b(2)}\r\ntwo\r\n[]\r\n{:a(1), :b(2)}\r\nthree\r\n[:a(1), :b(2)]\r\n{}\r\n```\r\n\r\nSo says Larry, so say we all.\r\n\r\nHowever, in the meantime, I've declared KnottyPair to be obsolete with the recent refactoring of Pair, Hashes, Maps, etc.\r\n\r\n"}}