{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/32243","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/32243/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/32243/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/32243/events","html_url":"https://github.com/rust-lang/rust/issues/32243","id":140639601,"number":32243,"title":"formalize FromStr syntax","user":{"login":"flying-sheep","id":291575,"avatar_url":"https://avatars3.githubusercontent.com/u/291575?v=3","gravatar_id":"","url":"https://api.github.com/users/flying-sheep","html_url":"https://github.com/flying-sheep","followers_url":"https://api.github.com/users/flying-sheep/followers","following_url":"https://api.github.com/users/flying-sheep/following{/other_user}","gists_url":"https://api.github.com/users/flying-sheep/gists{/gist_id}","starred_url":"https://api.github.com/users/flying-sheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flying-sheep/subscriptions","organizations_url":"https://api.github.com/users/flying-sheep/orgs","repos_url":"https://api.github.com/users/flying-sheep/repos","events_url":"https://api.github.com/users/flying-sheep/events{/privacy}","received_events_url":"https://api.github.com/users/flying-sheep/received_events","type":"User","site_admin":false},"labels":[{"id":431251592,"url":"https://api.github.com/repos/rust-lang/rust/labels/T-doc","name":"T-doc","color":"bfd4f2","default":false},{"id":211668062,"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":2,"created_at":"2016-03-14T10:53:12Z","updated_at":"2017-06-08T08:09:17Z","closed_at":null,"body":"AFAIK there’s no grammar specified anywhere that describes how `FromStr`/`parse` works.\n\nE.g. some didn’t want `f64::from_str(\".\")` to work (#30344) and I wonder why `i32::from_str(\"1_000\")` does _not_ work.\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/307031298","html_url":"https://github.com/rust-lang/rust/issues/32243#issuecomment-307031298","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/32243","id":307031298,"user":{"login":"leoschwarz","id":9108636,"avatar_url":"https://avatars2.githubusercontent.com/u/9108636?v=3","gravatar_id":"","url":"https://api.github.com/users/leoschwarz","html_url":"https://github.com/leoschwarz","followers_url":"https://api.github.com/users/leoschwarz/followers","following_url":"https://api.github.com/users/leoschwarz/following{/other_user}","gists_url":"https://api.github.com/users/leoschwarz/gists{/gist_id}","starred_url":"https://api.github.com/users/leoschwarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leoschwarz/subscriptions","organizations_url":"https://api.github.com/users/leoschwarz/orgs","repos_url":"https://api.github.com/users/leoschwarz/repos","events_url":"https://api.github.com/users/leoschwarz/events{/privacy}","received_events_url":"https://api.github.com/users/leoschwarz/received_events","type":"User","site_admin":false},"created_at":"2017-06-08T08:09:17Z","updated_at":"2017-06-08T08:09:17Z","body":"I didn't find a grammar for FromStr for floats however as most likely it would be a bad idea to change the parsing now, it could just be derived from the code and officially documented so users don't have to figure these things out themselves.\r\n\r\nMaybe as grammar language [what was used for the Rust grammar specification](https://doc.rust-lang.org/grammar.html#notation) could be used, i.e. maybe link that and provide an expression for the valid numbers?"}}
{"actor":{"display_login":"leoschwarz"}}