{"action":"created","comment":{"url":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/comments/23947876","id":23947876,"diff_hunk":"@@ -991,16 +1026,28 @@ function Base.show(io::IO, p::__ClipperPath)\n     if isempty(p)\n         return\n     end\n+    print(io, \"Path([\")\n     for i = 1:length(p)-1\n         print(io, string(\"(\", x(p[i]), \",\", y(p[i]), \"), \"))\n     end\n     print(io, string(\"(\", x(p[end]), \",\", y(p[end]), \")\"))\n+    print(io, \"])\")\n end\n \n function Base.show(io::IO, p::__ClipperPaths)\n-    for i = 1:length(p)\n-        show(io, p[i])\n+    len = length(p)\n+    if len == 0\n+        print(io, \"Paths()\")\n+        return\n+    end\n+    print(io, \"Paths([\\n    \")\n+    for i = 1:len\n+        print(io, p[i])\n+        if i < len\n+            print(io, \",\\n    \")","path":"src/Clipper.jl","position":125,"original_position":125,"commit_id":"e7f8059e8c753e0237b3a09c2bed439bf158813a","original_commit_id":"e7f8059e8c753e0237b3a09c2bed439bf158813a","user":{"login":"jminardi","id":1882746,"avatar_url":"https://avatars.githubusercontent.com/u/1882746?v=3","gravatar_id":"","url":"https://api.github.com/users/jminardi","html_url":"https://github.com/jminardi","followers_url":"https://api.github.com/users/jminardi/followers","following_url":"https://api.github.com/users/jminardi/following{/other_user}","gists_url":"https://api.github.com/users/jminardi/gists{/gist_id}","starred_url":"https://api.github.com/users/jminardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jminardi/subscriptions","organizations_url":"https://api.github.com/users/jminardi/orgs","repos_url":"https://api.github.com/users/jminardi/repos","events_url":"https://api.github.com/users/jminardi/events{/privacy}","received_events_url":"https://api.github.com/users/jminardi/received_events","type":"User","site_admin":false},"body":"According to [this](https://github.com/JuliaLang/julia/issues/7959) `show()` is being deprecated in favor of `write()` anyway. It seems like `println()` just calls `show()` under the covers.","created_at":"2015-02-02T18:55:36Z","updated_at":"2015-02-02T18:55:36Z","html_url":"https://github.com/Voxel8/Clipper.jl/pull/10#discussion_r23947876","pull_request_url":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/comments/23947876"},"html":{"href":"https://github.com/Voxel8/Clipper.jl/pull/10#discussion_r23947876"},"pull_request":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/10","id":28408898,"html_url":"https://github.com/Voxel8/Clipper.jl/pull/10","diff_url":"https://github.com/Voxel8/Clipper.jl/pull/10.diff","patch_url":"https://github.com/Voxel8/Clipper.jl/pull/10.patch","issue_url":"https://api.github.com/repos/Voxel8/Clipper.jl/issues/10","number":10,"state":"open","locked":false,"title":"A few updates","user":{"login":"jminardi","id":1882746,"avatar_url":"https://avatars.githubusercontent.com/u/1882746?v=3","gravatar_id":"","url":"https://api.github.com/users/jminardi","html_url":"https://github.com/jminardi","followers_url":"https://api.github.com/users/jminardi/followers","following_url":"https://api.github.com/users/jminardi/following{/other_user}","gists_url":"https://api.github.com/users/jminardi/gists{/gist_id}","starred_url":"https://api.github.com/users/jminardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jminardi/subscriptions","organizations_url":"https://api.github.com/users/jminardi/orgs","repos_url":"https://api.github.com/users/jminardi/repos","events_url":"https://api.github.com/users/jminardi/events{/privacy}","received_events_url":"https://api.github.com/users/jminardi/received_events","type":"User","site_admin":false},"body":"This PR brings in a few updates:\r\n\r\n1. Paths now print themselves as a valid constructor (see output below)\r\n2. Paths can now be constructed from a vector of tuples:\r\n\r\n        julia> p = Path([(0, 0), (0, 10), (10, 10)])\r\n        Path([(0,0), (0,10), (10,10)])\r\n\r\n2a. Tuples can be pushed into paths\r\n3. Paths can be compared for equality\r\n4. Some tests of this new functionality","created_at":"2015-01-31T03:35:15Z","updated_at":"2015-02-02T18:55:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce9af6def9449167b8190ec775bc481992f170df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Voxel8/Clipper.jl/issues/10/comments","statuses_url":"https://api.github.com/repos/Voxel8/Clipper.jl/statuses/e7f8059e8c753e0237b3a09c2bed439bf158813a","head":{"label":"Voxel8:enh-julian","ref":"enh-julian","sha":"e7f8059e8c753e0237b3a09c2bed439bf158813a","user":{"login":"Voxel8","id":8389280,"avatar_url":"https://avatars.githubusercontent.com/u/8389280?v=3","gravatar_id":"","url":"https://api.github.com/users/Voxel8","html_url":"https://github.com/Voxel8","followers_url":"https://api.github.com/users/Voxel8/followers","following_url":"https://api.github.com/users/Voxel8/following{/other_user}","gists_url":"https://api.github.com/users/Voxel8/gists{/gist_id}","starred_url":"https://api.github.com/users/Voxel8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voxel8/subscriptions","organizations_url":"https://api.github.com/users/Voxel8/orgs","repos_url":"https://api.github.com/users/Voxel8/repos","events_url":"https://api.github.com/users/Voxel8/events{/privacy}","received_events_url":"https://api.github.com/users/Voxel8/received_events","type":"Organization","site_admin":false},"repo":{"id":28209916,"name":"Clipper.jl","full_name":"Voxel8/Clipper.jl","owner":{"login":"Voxel8","id":8389280,"avatar_url":"https://avatars.githubusercontent.com/u/8389280?v=3","gravatar_id":"","url":"https://api.github.com/users/Voxel8","html_url":"https://github.com/Voxel8","followers_url":"https://api.github.com/users/Voxel8/followers","following_url":"https://api.github.com/users/Voxel8/following{/other_user}","gists_url":"https://api.github.com/users/Voxel8/gists{/gist_id}","starred_url":"https://api.github.com/users/Voxel8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voxel8/subscriptions","organizations_url":"https://api.github.com/users/Voxel8/orgs","repos_url":"https://api.github.com/users/Voxel8/repos","events_url":"https://api.github.com/users/Voxel8/events{/privacy}","received_events_url":"https://api.github.com/users/Voxel8/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Voxel8/Clipper.jl","description":"Julia wrapping of clipper using Cxx.jl","fork":false,"url":"https://api.github.com/repos/Voxel8/Clipper.jl","forks_url":"https://api.github.com/repos/Voxel8/Clipper.jl/forks","keys_url":"https://api.github.com/repos/Voxel8/Clipper.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Voxel8/Clipper.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Voxel8/Clipper.jl/teams","hooks_url":"https://api.github.com/repos/Voxel8/Clipper.jl/hooks","issue_events_url":"https://api.github.com/repos/Voxel8/Clipper.jl/issues/events{/number}","events_url":"https://api.github.com/repos/Voxel8/Clipper.jl/events","assignees_url":"https://api.github.com/repos/Voxel8/Clipper.jl/assignees{/user}","branches_url":"https://api.github.com/repos/Voxel8/Clipper.jl/branches{/branch}","tags_url":"https://api.github.com/repos/Voxel8/Clipper.jl/tags","blobs_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Voxel8/Clipper.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/Voxel8/Clipper.jl/languages","stargazers_url":"https://api.github.com/repos/Voxel8/Clipper.jl/stargazers","contributors_url":"https://api.github.com/repos/Voxel8/Clipper.jl/contributors","subscribers_url":"https://api.github.com/repos/Voxel8/Clipper.jl/subscribers","subscription_url":"https://api.github.com/repos/Voxel8/Clipper.jl/subscription","commits_url":"https://api.github.com/repos/Voxel8/Clipper.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Voxel8/Clipper.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Voxel8/Clipper.jl/issues/comments/{number}","contents_url":"https://api.github.com/repos/Voxel8/Clipper.jl/contents/{+path}","compare_url":"https://api.github.com/repos/Voxel8/Clipper.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Voxel8/Clipper.jl/merges","archive_url":"https://api.github.com/repos/Voxel8/Clipper.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Voxel8/Clipper.jl/downloads","issues_url":"https://api.github.com/repos/Voxel8/Clipper.jl/issues{/number}","pulls_url":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/Voxel8/Clipper.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/Voxel8/Clipper.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Voxel8/Clipper.jl/labels{/name}","releases_url":"https://api.github.com/repos/Voxel8/Clipper.jl/releases{/id}","created_at":"2014-12-19T01:54:09Z","updated_at":"2015-02-02T17:06:59Z","pushed_at":"2015-02-02T17:06:59Z","git_url":"git://github.com/Voxel8/Clipper.jl.git","ssh_url":"git@github.com:Voxel8/Clipper.jl.git","clone_url":"https://github.com/Voxel8/Clipper.jl.git","svn_url":"https://github.com/Voxel8/Clipper.jl","homepage":null,"size":529,"stargazers_count":2,"watchers_count":2,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"Voxel8:master","ref":"master","sha":"6a3cce9ea409d7b4977024e3bbee1830955cb205","user":{"login":"Voxel8","id":8389280,"avatar_url":"https://avatars.githubusercontent.com/u/8389280?v=3","gravatar_id":"","url":"https://api.github.com/users/Voxel8","html_url":"https://github.com/Voxel8","followers_url":"https://api.github.com/users/Voxel8/followers","following_url":"https://api.github.com/users/Voxel8/following{/other_user}","gists_url":"https://api.github.com/users/Voxel8/gists{/gist_id}","starred_url":"https://api.github.com/users/Voxel8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voxel8/subscriptions","organizations_url":"https://api.github.com/users/Voxel8/orgs","repos_url":"https://api.github.com/users/Voxel8/repos","events_url":"https://api.github.com/users/Voxel8/events{/privacy}","received_events_url":"https://api.github.com/users/Voxel8/received_events","type":"Organization","site_admin":false},"repo":{"id":28209916,"name":"Clipper.jl","full_name":"Voxel8/Clipper.jl","owner":{"login":"Voxel8","id":8389280,"avatar_url":"https://avatars.githubusercontent.com/u/8389280?v=3","gravatar_id":"","url":"https://api.github.com/users/Voxel8","html_url":"https://github.com/Voxel8","followers_url":"https://api.github.com/users/Voxel8/followers","following_url":"https://api.github.com/users/Voxel8/following{/other_user}","gists_url":"https://api.github.com/users/Voxel8/gists{/gist_id}","starred_url":"https://api.github.com/users/Voxel8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voxel8/subscriptions","organizations_url":"https://api.github.com/users/Voxel8/orgs","repos_url":"https://api.github.com/users/Voxel8/repos","events_url":"https://api.github.com/users/Voxel8/events{/privacy}","received_events_url":"https://api.github.com/users/Voxel8/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Voxel8/Clipper.jl","description":"Julia wrapping of clipper using Cxx.jl","fork":false,"url":"https://api.github.com/repos/Voxel8/Clipper.jl","forks_url":"https://api.github.com/repos/Voxel8/Clipper.jl/forks","keys_url":"https://api.github.com/repos/Voxel8/Clipper.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Voxel8/Clipper.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Voxel8/Clipper.jl/teams","hooks_url":"https://api.github.com/repos/Voxel8/Clipper.jl/hooks","issue_events_url":"https://api.github.com/repos/Voxel8/Clipper.jl/issues/events{/number}","events_url":"https://api.github.com/repos/Voxel8/Clipper.jl/events","assignees_url":"https://api.github.com/repos/Voxel8/Clipper.jl/assignees{/user}","branches_url":"https://api.github.com/repos/Voxel8/Clipper.jl/branches{/branch}","tags_url":"https://api.github.com/repos/Voxel8/Clipper.jl/tags","blobs_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Voxel8/Clipper.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/Voxel8/Clipper.jl/languages","stargazers_url":"https://api.github.com/repos/Voxel8/Clipper.jl/stargazers","contributors_url":"https://api.github.com/repos/Voxel8/Clipper.jl/contributors","subscribers_url":"https://api.github.com/repos/Voxel8/Clipper.jl/subscribers","subscription_url":"https://api.github.com/repos/Voxel8/Clipper.jl/subscription","commits_url":"https://api.github.com/repos/Voxel8/Clipper.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Voxel8/Clipper.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Voxel8/Clipper.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Voxel8/Clipper.jl/issues/comments/{number}","contents_url":"https://api.github.com/repos/Voxel8/Clipper.jl/contents/{+path}","compare_url":"https://api.github.com/repos/Voxel8/Clipper.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Voxel8/Clipper.jl/merges","archive_url":"https://api.github.com/repos/Voxel8/Clipper.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Voxel8/Clipper.jl/downloads","issues_url":"https://api.github.com/repos/Voxel8/Clipper.jl/issues{/number}","pulls_url":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/Voxel8/Clipper.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/Voxel8/Clipper.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Voxel8/Clipper.jl/labels{/name}","releases_url":"https://api.github.com/repos/Voxel8/Clipper.jl/releases{/id}","created_at":"2014-12-19T01:54:09Z","updated_at":"2015-02-02T17:06:59Z","pushed_at":"2015-02-02T17:06:59Z","git_url":"git://github.com/Voxel8/Clipper.jl.git","ssh_url":"git@github.com:Voxel8/Clipper.jl.git","clone_url":"https://github.com/Voxel8/Clipper.jl.git","svn_url":"https://github.com/Voxel8/Clipper.jl","homepage":null,"size":529,"stargazers_count":2,"watchers_count":2,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/10"},"html":{"href":"https://github.com/Voxel8/Clipper.jl/pull/10"},"issue":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/issues/10"},"comments":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Voxel8/Clipper.jl/statuses/e7f8059e8c753e0237b3a09c2bed439bf158813a"}}}}