{"action":"created","comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments/79922072","id":79922072,"diff_hunk":"@@ -64,9 +64,16 @@ true\n The reason we can compare different data types is pragmatism. Sorting algorithms don’t need to worry about different data types in order to sort. For reference, the overall sorting order is defined below:\n \n ```\n-number < atom < reference < functions < port < pid < tuple < maps < list < bitstring\n+number < atom < reference < functions < port < pid < tuple < map < list < bitstring\n ```\n \n+When comparing two `number` (a `number` is either of type `integer` or `float`) of different types, a conversion to the type with lesser precision will always occur, unless the comparison operator used is either `===` or `!==`. A `float` will be considered more precise than an `integer`, unless the `float` is greater/lesser than +/-9007199254740992.0, at which point all the significant figures of the `float` are to the left of the decimal point. This behavior exists so that the comparison of large `number` remains transitive.","path":"lib/elixir/pages/Operators.md","position":null,"original_position":8,"commit_id":"5dc7e3ba61445e211070ccfb0539ac03a93bc0fc","original_commit_id":"2392f3262ef877936802d80cd22339674b276367","user":{"login":"fboyer","id":5251551,"avatar_url":"https://avatars.githubusercontent.com/u/5251551?v=3","gravatar_id":"","url":"https://api.github.com/users/fboyer","html_url":"https://github.com/fboyer","followers_url":"https://api.github.com/users/fboyer/followers","following_url":"https://api.github.com/users/fboyer/following{/other_user}","gists_url":"https://api.github.com/users/fboyer/gists{/gist_id}","starred_url":"https://api.github.com/users/fboyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fboyer/subscriptions","organizations_url":"https://api.github.com/users/fboyer/orgs","repos_url":"https://api.github.com/users/fboyer/repos","events_url":"https://api.github.com/users/fboyer/events{/privacy}","received_events_url":"https://api.github.com/users/fboyer/received_events","type":"User","site_admin":false},"body":"Oops, I did not see this one, will fix it.","created_at":"2016-09-21T20:13:12Z","updated_at":"2016-09-21T20:13:12Z","html_url":"https://github.com/elixir-lang/elixir/pull/5238#discussion_r79922072","pull_request_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/5238","_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments/79922072"},"html":{"href":"https://github.com/elixir-lang/elixir/pull/5238#discussion_r79922072"},"pull_request":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/5238"}}},"pull_request":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/5238","id":86226105,"html_url":"https://github.com/elixir-lang/elixir/pull/5238","diff_url":"https://github.com/elixir-lang/elixir/pull/5238.diff","patch_url":"https://github.com/elixir-lang/elixir/pull/5238.patch","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5238","number":5238,"state":"open","locked":false,"title":"Clarify some of the subtleties linked to term ordering in the docs","user":{"login":"fboyer","id":5251551,"avatar_url":"https://avatars.githubusercontent.com/u/5251551?v=3","gravatar_id":"","url":"https://api.github.com/users/fboyer","html_url":"https://github.com/fboyer","followers_url":"https://api.github.com/users/fboyer/followers","following_url":"https://api.github.com/users/fboyer/following{/other_user}","gists_url":"https://api.github.com/users/fboyer/gists{/gist_id}","starred_url":"https://api.github.com/users/fboyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fboyer/subscriptions","organizations_url":"https://api.github.com/users/fboyer/orgs","repos_url":"https://api.github.com/users/fboyer/repos","events_url":"https://api.github.com/users/fboyer/events{/privacy}","received_events_url":"https://api.github.com/users/fboyer/received_events","type":"User","site_admin":false},"body":"As it was discussed with @whatyouhide in #5222, here is a quick attempt to add the missing key information around term ordering in the docs without directly copying the Erlang docs.\r\n\r\nLet me know if you have any suggestions and/or comments.\r\n\r\nCheers!","created_at":"2016-09-21T19:29:07Z","updated_at":"2016-09-21T20:13:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8651bf644161a14fd6ede9cce34f8d3560c90ea9","assignee":{"login":"whatyouhide","id":3890250,"avatar_url":"https://avatars.githubusercontent.com/u/3890250?v=3","gravatar_id":"","url":"https://api.github.com/users/whatyouhide","html_url":"https://github.com/whatyouhide","followers_url":"https://api.github.com/users/whatyouhide/followers","following_url":"https://api.github.com/users/whatyouhide/following{/other_user}","gists_url":"https://api.github.com/users/whatyouhide/gists{/gist_id}","starred_url":"https://api.github.com/users/whatyouhide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatyouhide/subscriptions","organizations_url":"https://api.github.com/users/whatyouhide/orgs","repos_url":"https://api.github.com/users/whatyouhide/repos","events_url":"https://api.github.com/users/whatyouhide/events{/privacy}","received_events_url":"https://api.github.com/users/whatyouhide/received_events","type":"User","site_admin":false},"assignees":[{"login":"whatyouhide","id":3890250,"avatar_url":"https://avatars.githubusercontent.com/u/3890250?v=3","gravatar_id":"","url":"https://api.github.com/users/whatyouhide","html_url":"https://github.com/whatyouhide","followers_url":"https://api.github.com/users/whatyouhide/followers","following_url":"https://api.github.com/users/whatyouhide/following{/other_user}","gists_url":"https://api.github.com/users/whatyouhide/gists{/gist_id}","starred_url":"https://api.github.com/users/whatyouhide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatyouhide/subscriptions","organizations_url":"https://api.github.com/users/whatyouhide/orgs","repos_url":"https://api.github.com/users/whatyouhide/repos","events_url":"https://api.github.com/users/whatyouhide/events{/privacy}","received_events_url":"https://api.github.com/users/whatyouhide/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/5238/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/5238/comments","review_comment_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5238/comments","statuses_url":"https://api.github.com/repos/elixir-lang/elixir/statuses/5dc7e3ba61445e211070ccfb0539ac03a93bc0fc","head":{"label":"fboyer:enhance-term-ordering-doc","ref":"enhance-term-ordering-doc","sha":"5dc7e3ba61445e211070ccfb0539ac03a93bc0fc","user":{"login":"fboyer","id":5251551,"avatar_url":"https://avatars.githubusercontent.com/u/5251551?v=3","gravatar_id":"","url":"https://api.github.com/users/fboyer","html_url":"https://github.com/fboyer","followers_url":"https://api.github.com/users/fboyer/followers","following_url":"https://api.github.com/users/fboyer/following{/other_user}","gists_url":"https://api.github.com/users/fboyer/gists{/gist_id}","starred_url":"https://api.github.com/users/fboyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fboyer/subscriptions","organizations_url":"https://api.github.com/users/fboyer/orgs","repos_url":"https://api.github.com/users/fboyer/repos","events_url":"https://api.github.com/users/fboyer/events{/privacy}","received_events_url":"https://api.github.com/users/fboyer/received_events","type":"User","site_admin":false},"repo":{"id":68230069,"name":"elixir","full_name":"fboyer/elixir","owner":{"login":"fboyer","id":5251551,"avatar_url":"https://avatars.githubusercontent.com/u/5251551?v=3","gravatar_id":"","url":"https://api.github.com/users/fboyer","html_url":"https://github.com/fboyer","followers_url":"https://api.github.com/users/fboyer/followers","following_url":"https://api.github.com/users/fboyer/following{/other_user}","gists_url":"https://api.github.com/users/fboyer/gists{/gist_id}","starred_url":"https://api.github.com/users/fboyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fboyer/subscriptions","organizations_url":"https://api.github.com/users/fboyer/orgs","repos_url":"https://api.github.com/users/fboyer/repos","events_url":"https://api.github.com/users/fboyer/events{/privacy}","received_events_url":"https://api.github.com/users/fboyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fboyer/elixir","description":"Elixir is a dynamic, functional language designed for building scalable and maintainable applications","fork":true,"url":"https://api.github.com/repos/fboyer/elixir","forks_url":"https://api.github.com/repos/fboyer/elixir/forks","keys_url":"https://api.github.com/repos/fboyer/elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fboyer/elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fboyer/elixir/teams","hooks_url":"https://api.github.com/repos/fboyer/elixir/hooks","issue_events_url":"https://api.github.com/repos/fboyer/elixir/issues/events{/number}","events_url":"https://api.github.com/repos/fboyer/elixir/events","assignees_url":"https://api.github.com/repos/fboyer/elixir/assignees{/user}","branches_url":"https://api.github.com/repos/fboyer/elixir/branches{/branch}","tags_url":"https://api.github.com/repos/fboyer/elixir/tags","blobs_url":"https://api.github.com/repos/fboyer/elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fboyer/elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fboyer/elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/fboyer/elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fboyer/elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/fboyer/elixir/languages","stargazers_url":"https://api.github.com/repos/fboyer/elixir/stargazers","contributors_url":"https://api.github.com/repos/fboyer/elixir/contributors","subscribers_url":"https://api.github.com/repos/fboyer/elixir/subscribers","subscription_url":"https://api.github.com/repos/fboyer/elixir/subscription","commits_url":"https://api.github.com/repos/fboyer/elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/fboyer/elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/fboyer/elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/fboyer/elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/fboyer/elixir/contents/{+path}","compare_url":"https://api.github.com/repos/fboyer/elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fboyer/elixir/merges","archive_url":"https://api.github.com/repos/fboyer/elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fboyer/elixir/downloads","issues_url":"https://api.github.com/repos/fboyer/elixir/issues{/number}","pulls_url":"https://api.github.com/repos/fboyer/elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/fboyer/elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/fboyer/elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fboyer/elixir/labels{/name}","releases_url":"https://api.github.com/repos/fboyer/elixir/releases{/id}","deployments_url":"https://api.github.com/repos/fboyer/elixir/deployments","created_at":"2016-09-14T17:57:40Z","updated_at":"2016-09-14T17:57:44Z","pushed_at":"2016-09-21T20:10:24Z","git_url":"git://github.com/fboyer/elixir.git","ssh_url":"git@github.com:fboyer/elixir.git","clone_url":"https://github.com/fboyer/elixir.git","svn_url":"https://github.com/fboyer/elixir","homepage":"http://elixir-lang.org/","size":29384,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"elixir-lang:master","ref":"master","sha":"a3e96ee24192ab1aed2c4b4ce7e3e93fd9e7e1a7","user":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":1234714,"name":"elixir","full_name":"elixir-lang/elixir","owner":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixir-lang/elixir","description":"Elixir is a dynamic, functional language designed for building scalable and maintainable applications","fork":false,"url":"https://api.github.com/repos/elixir-lang/elixir","forks_url":"https://api.github.com/repos/elixir-lang/elixir/forks","keys_url":"https://api.github.com/repos/elixir-lang/elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixir-lang/elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixir-lang/elixir/teams","hooks_url":"https://api.github.com/repos/elixir-lang/elixir/hooks","issue_events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/events{/number}","events_url":"https://api.github.com/repos/elixir-lang/elixir/events","assignees_url":"https://api.github.com/repos/elixir-lang/elixir/assignees{/user}","branches_url":"https://api.github.com/repos/elixir-lang/elixir/branches{/branch}","tags_url":"https://api.github.com/repos/elixir-lang/elixir/tags","blobs_url":"https://api.github.com/repos/elixir-lang/elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixir-lang/elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixir-lang/elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixir-lang/elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixir-lang/elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/elixir-lang/elixir/languages","stargazers_url":"https://api.github.com/repos/elixir-lang/elixir/stargazers","contributors_url":"https://api.github.com/repos/elixir-lang/elixir/contributors","subscribers_url":"https://api.github.com/repos/elixir-lang/elixir/subscribers","subscription_url":"https://api.github.com/repos/elixir-lang/elixir/subscription","commits_url":"https://api.github.com/repos/elixir-lang/elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixir-lang/elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixir-lang/elixir/contents/{+path}","compare_url":"https://api.github.com/repos/elixir-lang/elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixir-lang/elixir/merges","archive_url":"https://api.github.com/repos/elixir-lang/elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixir-lang/elixir/downloads","issues_url":"https://api.github.com/repos/elixir-lang/elixir/issues{/number}","pulls_url":"https://api.github.com/repos/elixir-lang/elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/elixir-lang/elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/elixir-lang/elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixir-lang/elixir/labels{/name}","releases_url":"https://api.github.com/repos/elixir-lang/elixir/releases{/id}","deployments_url":"https://api.github.com/repos/elixir-lang/elixir/deployments","created_at":"2011-01-09T08:43:57Z","updated_at":"2016-09-21T19:03:34Z","pushed_at":"2016-09-21T20:10:24Z","git_url":"git://github.com/elixir-lang/elixir.git","ssh_url":"git@github.com:elixir-lang/elixir.git","clone_url":"https://github.com/elixir-lang/elixir.git","svn_url":"https://github.com/elixir-lang/elixir","homepage":"http://elixir-lang.org/","size":39091,"stargazers_count":8131,"watchers_count":8131,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1108,"mirror_url":null,"open_issues_count":25,"forks":1108,"open_issues":25,"watchers":8131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/5238"},"html":{"href":"https://github.com/elixir-lang/elixir/pull/5238"},"issue":{"href":"https://api.github.com/repos/elixir-lang/elixir/issues/5238"},"comments":{"href":"https://api.github.com/repos/elixir-lang/elixir/issues/5238/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/5238/comments"},"review_comment":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/5238/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/elixir/statuses/5dc7e3ba61445e211070ccfb0539ac03a93bc0fc"}}}}
{"actor":{"display_login":"fboyer"}}