{"action":"created","issue":{"url":"https://api.github.com/repos/ponylang/ponyc/issues/547","repository_url":"https://api.github.com/repos/ponylang/ponyc","labels_url":"https://api.github.com/repos/ponylang/ponyc/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/ponylang/ponyc/issues/547/comments","events_url":"https://api.github.com/repos/ponylang/ponyc/issues/547/events","html_url":"https://github.com/ponylang/ponyc/issues/547","id":137775445,"number":547,"title":"Improve numeric primitive inference","user":{"login":"Scramblejams","id":371544,"avatar_url":"https://avatars.githubusercontent.com/u/371544?v=3","gravatar_id":"","url":"https://api.github.com/users/Scramblejams","html_url":"https://github.com/Scramblejams","followers_url":"https://api.github.com/users/Scramblejams/followers","following_url":"https://api.github.com/users/Scramblejams/following{/other_user}","gists_url":"https://api.github.com/users/Scramblejams/gists{/gist_id}","starred_url":"https://api.github.com/users/Scramblejams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scramblejams/subscriptions","organizations_url":"https://api.github.com/users/Scramblejams/orgs","repos_url":"https://api.github.com/users/Scramblejams/repos","events_url":"https://api.github.com/users/Scramblejams/events{/privacy}","received_events_url":"https://api.github.com/users/Scramblejams/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ponylang/ponyc/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"jemc","id":4623870,"avatar_url":"https://avatars.githubusercontent.com/u/4623870?v=3","gravatar_id":"","url":"https://api.github.com/users/jemc","html_url":"https://github.com/jemc","followers_url":"https://api.github.com/users/jemc/followers","following_url":"https://api.github.com/users/jemc/following{/other_user}","gists_url":"https://api.github.com/users/jemc/gists{/gist_id}","starred_url":"https://api.github.com/users/jemc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jemc/subscriptions","organizations_url":"https://api.github.com/users/jemc/orgs","repos_url":"https://api.github.com/users/jemc/repos","events_url":"https://api.github.com/users/jemc/events{/privacy}","received_events_url":"https://api.github.com/users/jemc/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2016-03-02T05:12:16Z","updated_at":"2016-03-07T06:43:04Z","closed_at":null,"body":"The following line...\r\n\r\n    let delay: U64 = 2*1e9\r\n\r\n...invokes the following error:\r\n\r\n    Inferred possibly integer type U64 for float literal\r\n\r\nWould be nice if 1e9 were appropriately inferred based on context."},"comment":{"url":"https://api.github.com/repos/ponylang/ponyc/issues/comments/193124717","html_url":"https://github.com/ponylang/ponyc/issues/547#issuecomment-193124717","issue_url":"https://api.github.com/repos/ponylang/ponyc/issues/547","id":193124717,"user":{"login":"jemc","id":4623870,"avatar_url":"https://avatars.githubusercontent.com/u/4623870?v=3","gravatar_id":"","url":"https://api.github.com/users/jemc","html_url":"https://github.com/jemc","followers_url":"https://api.github.com/users/jemc/followers","following_url":"https://api.github.com/users/jemc/following{/other_user}","gists_url":"https://api.github.com/users/jemc/gists{/gist_id}","starred_url":"https://api.github.com/users/jemc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jemc/subscriptions","organizations_url":"https://api.github.com/users/jemc/orgs","repos_url":"https://api.github.com/users/jemc/repos","events_url":"https://api.github.com/users/jemc/events{/privacy}","received_events_url":"https://api.github.com/users/jemc/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T06:43:04Z","updated_at":"2016-03-07T06:43:04Z","body":"> We could use @jemc's variation and say we allow exponent form as integers on the condition that there's no decimal point and the exponent is not negative. However that would mean that many numbers which are integer valued aren't counted as integers, which also seems very confusing to me. Eg:\r\n\r\n> ```pony\r\n1e1  // 10, integer\r\n1.2e1 // 12, not an integer\r\n```\r\n\r\nActually, I was trying to explain I intended that `1.2e1` would also be parsed as an integer, because the value after applying the exponent would have no digits to the right of the decimal point.\r\n\r\nI've opened a PR with this change (#556), so you can check the implementation to see what I mean.\r\n\r\n"}}