{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/21915","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/21915/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/21915/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/21915/events","html_url":"https://github.com/dart-lang/sdk/issues/21915","id":84595051,"number":21915,"title":"fixnum: standardize parse methods.","user":{"login":"rakudrama","id":2108821,"avatar_url":"https://avatars.githubusercontent.com/u/2108821?v=3","gravatar_id":"","url":"https://api.github.com/users/rakudrama","html_url":"https://github.com/rakudrama","followers_url":"https://api.github.com/users/rakudrama/followers","following_url":"https://api.github.com/users/rakudrama/following{/other_user}","gists_url":"https://api.github.com/users/rakudrama/gists{/gist_id}","starred_url":"https://api.github.com/users/rakudrama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakudrama/subscriptions","organizations_url":"https://api.github.com/users/rakudrama/orgs","repos_url":"https://api.github.com/users/rakudrama/repos","events_url":"https://api.github.com/users/rakudrama/events{/privacy}","received_events_url":"https://api.github.com/users/rakudrama/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-Pkg","name":"Area-Pkg","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Pkg-fixnum","name":"Pkg-fixnum","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-Unassigned","name":"Priority-Unassigned","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Triaged","name":"Triaged","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-18T05:45:17Z","updated_at":"2015-06-05T23:20:50Z","closed_at":"2015-06-05T23:20:50Z","body":"Int64.parseInt, Int64.parseRadix and Int64.parseHex should be marked as deprecated and replaced with a single Int64.parse method modeled after int.parse\n\n&nbsp;&nbsp;&nbsp;static Int64 parse(String source {int radix, Int64 onError(String source)});\n\nThis method would also handle the 0x, +0x, -0x prefixes when a radix is not specified.  None of the current methods can parse these.\n\nIt might be desirable to add a way to detect overflow, perhaps another named optional argument\n\n&nbsp;&nbsp;Int64 onOverflow(String source, Int64 value, bool is64BitUnsigned)\n\n`value` is the truncated value, is64BitUnsigned is true if the value overflowed but only set the sign bit.\n"}}