{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/11105","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/11105/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/11105/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/11105/events","html_url":"https://github.com/JuliaLang/julia/issues/11105","id":72691148,"number":11105,"title":"Extending hex literal switches from UInt128 to (signed) BigInt","user":{"login":"ScottPJones","id":11798751,"avatar_url":"https://avatars.githubusercontent.com/u/11798751?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottPJones","html_url":"https://github.com/ScottPJones","followers_url":"https://api.github.com/users/ScottPJones/followers","following_url":"https://api.github.com/users/ScottPJones/following{/other_user}","gists_url":"https://api.github.com/users/ScottPJones/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottPJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottPJones/subscriptions","organizations_url":"https://api.github.com/users/ScottPJones/orgs","repos_url":"https://api.github.com/users/ScottPJones/repos","events_url":"https://api.github.com/users/ScottPJones/events{/privacy}","received_events_url":"https://api.github.com/users/ScottPJones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/breaking","name":"breaking","color":"800000"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/decision","name":"decision","color":"F08000"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/parser","name":"parser","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-02T20:05:51Z","updated_at":"2015-05-03T00:36:29Z","closed_at":null,"body":"If you have hexadecimal literal, normally it produces an unsigned value, whose size is dependent on the length of the literal.\r\nHowever, if you go past 128 bits (32 hex digits), then it will switch to a signed number, which could possibly lead to hard to find bugs.\r\nFor example:\r\n```\r\njulia> ~0x00000000000000000000000000000000\r\n0xffffffffffffffffffffffffffffffff\r\n\r\njulia> ~0x000000000000000000000000000000000\r\n-1\r\n```\r\nI believe this at least deserves a warning from the compiler (a point I tried to raise in #11081, only to have the title of my issue changed out from under me and then have it closed)"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/98420715","html_url":"https://github.com/JuliaLang/julia/issues/11105#issuecomment-98420715","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/11105","id":98420715,"user":{"login":"ScottPJones","id":11798751,"avatar_url":"https://avatars.githubusercontent.com/u/11798751?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottPJones","html_url":"https://github.com/ScottPJones","followers_url":"https://api.github.com/users/ScottPJones/followers","following_url":"https://api.github.com/users/ScottPJones/following{/other_user}","gists_url":"https://api.github.com/users/ScottPJones/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottPJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottPJones/subscriptions","organizations_url":"https://api.github.com/users/ScottPJones/orgs","repos_url":"https://api.github.com/users/ScottPJones/repos","events_url":"https://api.github.com/users/ScottPJones/events{/privacy}","received_events_url":"https://api.github.com/users/ScottPJones/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T00:36:29Z","updated_at":"2015-05-03T00:36:29Z","body":"@JeffBezanson Error, or warning (or do you not do warnings in Julia?)\r\nThere are definitely cases where it would be nice to define a BigInt literal as hex... but maybe there's some workaround?"}}