{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/9585","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/9585/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/9585/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/9585/events","html_url":"https://github.com/JuliaLang/julia/pull/9585","id":53314459,"number":9585,"title":"Add to style guide: avoid float literals","user":{"login":"tlycken","id":1550920,"avatar_url":"https://avatars.githubusercontent.com/u/1550920?v=3","gravatar_id":"","url":"https://api.github.com/users/tlycken","html_url":"https://github.com/tlycken","followers_url":"https://api.github.com/users/tlycken/followers","following_url":"https://api.github.com/users/tlycken/following{/other_user}","gists_url":"https://api.github.com/users/tlycken/gists{/gist_id}","starred_url":"https://api.github.com/users/tlycken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlycken/subscriptions","organizations_url":"https://api.github.com/users/tlycken/orgs","repos_url":"https://api.github.com/users/tlycken/repos","events_url":"https://api.github.com/users/tlycken/events{/privacy}","received_events_url":"https://api.github.com/users/tlycken/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-03T20:27:50Z","updated_at":"2015-01-31T20:25:35Z","closed_at":"2015-01-31T20:25:35Z","pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/9585","html_url":"https://github.com/JuliaLang/julia/pull/9585","diff_url":"https://github.com/JuliaLang/julia/pull/9585.diff","patch_url":"https://github.com/JuliaLang/julia/pull/9585.patch"},"body":"In a discussion with @timholy just now, I learned that numeric literals are way less disruptive to the types of other variables if specified as `Int`s or `Rational`s than if they're specified with floats (which is the intuitive thing to do for non-integer values. Therefore, I propose adding something about this to the style guide - if this is (and/or should be) considered a best practice, of course.\r\n\r\nI am very open to suggestion about wording, choice of examples and positioning in the manual.\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/72334825","html_url":"https://github.com/JuliaLang/julia/pull/9585#issuecomment-72334825","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/9585","id":72334825,"user":{"login":"jiahao","id":1732,"avatar_url":"https://avatars.githubusercontent.com/u/1732?v=3","gravatar_id":"","url":"https://api.github.com/users/jiahao","html_url":"https://github.com/jiahao","followers_url":"https://api.github.com/users/jiahao/followers","following_url":"https://api.github.com/users/jiahao/following{/other_user}","gists_url":"https://api.github.com/users/jiahao/gists{/gist_id}","starred_url":"https://api.github.com/users/jiahao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiahao/subscriptions","organizations_url":"https://api.github.com/users/jiahao/orgs","repos_url":"https://api.github.com/users/jiahao/repos","events_url":"https://api.github.com/users/jiahao/events{/privacy}","received_events_url":"https://api.github.com/users/jiahao/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T20:25:35Z","updated_at":"2015-01-31T20:25:35Z","body":"Squashed and committed as b968f110fda2a6e52b3712ad247e49af054e99b6"}}