{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/49048","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/49048/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/49048/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/49048/events","html_url":"https://github.com/rust-lang/rust/issues/49048","id":305600066,"node_id":"MDU6SXNzdWUzMDU2MDAwNjY=","number":49048,"title":"Tracking issue for RFC 2169: Euclidean Modulo","user":{"login":"alexcrichton","id":64996,"node_id":"MDQ6VXNlcjY0OTk2","avatar_url":"https://avatars1.githubusercontent.com/u/64996?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"labels":[{"id":433146169,"node_id":"MDU6TGFiZWw0MzMxNDYxNjk=","url":"https://api.github.com/repos/rust-lang/rust/labels/B-RFC-implemented","name":"B-RFC-implemented","color":"d304cb","default":false},{"id":650846969,"node_id":"MDU6TGFiZWw2NTA4NDY5Njk=","url":"https://api.github.com/repos/rust-lang/rust/labels/C-tracking-issue","name":"C-tracking-issue","color":"f5f1fd","default":false},{"id":211668062,"node_id":"MDU6TGFiZWwyMTE2NjgwNjI=","url":"https://api.github.com/repos/rust-lang/rust/labels/T-libs","name":"T-libs","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2018-03-15T15:25:51Z","updated_at":"2018-11-09T23:41:22Z","closed_at":null,"author_association":"MEMBER","body":"Tracking issue for rust-lang/rfcs#2169, euclidean modulo methods on numbers\r\n\r\n**Steps**:\r\n\r\n- [x] Implementation (https://github.com/rust-lang/rust/pull/49389)\r\n- [ ] Stabilization PR"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/437529656","html_url":"https://github.com/rust-lang/rust/issues/49048#issuecomment-437529656","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/49048","id":437529656,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzUyOTY1Ng==","user":{"login":"clarcharr","id":15850505,"node_id":"MDQ6VXNlcjE1ODUwNTA1","avatar_url":"https://avatars1.githubusercontent.com/u/15850505?v=4","gravatar_id":"","url":"https://api.github.com/users/clarcharr","html_url":"https://github.com/clarcharr","followers_url":"https://api.github.com/users/clarcharr/followers","following_url":"https://api.github.com/users/clarcharr/following{/other_user}","gists_url":"https://api.github.com/users/clarcharr/gists{/gist_id}","starred_url":"https://api.github.com/users/clarcharr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarcharr/subscriptions","organizations_url":"https://api.github.com/users/clarcharr/orgs","repos_url":"https://api.github.com/users/clarcharr/repos","events_url":"https://api.github.com/users/clarcharr/events{/privacy}","received_events_url":"https://api.github.com/users/clarcharr/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T23:41:22Z","updated_at":"2018-11-09T23:41:22Z","author_association":"CONTRIBUTOR","body":"I personally think that `_euclid` is a good suffix; it's not as verbose as `_euclidean` while still feeling natural and unambiguous. Additionally, even as a mathematically inclined person, I don't immediately read \"euc\" as \"Euclidean,\" whereas I feel that even non-mathematically-inclined people would read \"euclid\" as \"Euclidean.\"\r\n\r\nAs far as the distinction between \"modulo\" and \"remainder,\" I feel like the most important distinction is that Rust currently uses \"rem\" to refer to the remainder of truncated division, rather than \"mod.\" Because `div_euc` does not use any weird terminology compared to the regular `div`, it feels inconsistent to use `mod` instead of `rem` for `mod_euc`.\r\n\r\nSo to clarify, I think we should name the methods to `div_euclid` and `rem_euclid`.\r\n\r\nThat way, we have truncated division + remainder and Euclidean divison + remainder, rather than truncated division + remainder and Euclidean division + modulo."}}
{"actor":{"display_login":"clarcharr"}}