{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/13126","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/13126/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/13126/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/13126/events","html_url":"https://github.com/JuliaLang/julia/issues/13126","id":106415838,"number":13126,"title":"deprecation of `int`","user":{"login":"my-little-repository","id":5676301,"avatar_url":"https://avatars.githubusercontent.com/u/5676301?v=3","gravatar_id":"","url":"https://api.github.com/users/my-little-repository","html_url":"https://github.com/my-little-repository","followers_url":"https://api.github.com/users/my-little-repository/followers","following_url":"https://api.github.com/users/my-little-repository/following{/other_user}","gists_url":"https://api.github.com/users/my-little-repository/gists{/gist_id}","starred_url":"https://api.github.com/users/my-little-repository/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/my-little-repository/subscriptions","organizations_url":"https://api.github.com/users/my-little-repository/orgs","repos_url":"https://api.github.com/users/my-little-repository/repos","events_url":"https://api.github.com/users/my-little-repository/events{/privacy}","received_events_url":"https://api.github.com/users/my-little-repository/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-14T19:56:06Z","updated_at":"2015-09-15T10:04:45Z","closed_at":"2015-09-15T10:04:45Z","body":"Can we please undeprecate the `int` function?\r\n\r\nIn my opinion, it is as useful as the `big` and `float` functions. I use it e.g. when a type is lost in a computation, which happens when methods/algorithms are not yet implemented for integer arguments.\r\n\r\n    julia> det([-5 -5 ; -3 -5])\r\n    9.999999999999998\r\n    julia> Int(det([-5 -5 ; -3 -5]))\r\n    ERROR: InexactError()\r\n     in call at essentials.jl:56\r\n    julia> int(det([-5 -5 ; -3 -5]))\r\n    10\r\n\r\nNote also that Integers are used as indices to arrays. With the removal of Reals indices, the `int` function will become even more useful. Here is an example where I think that `int` is the better choice with respect to readability.\r\n\r\n     A[int((m+1)/2)]\r\n     A[convert(Int, (m+1)/2)]\r\n     A[(m+1) >> 1]\r\n\r\nHere are a few constructs that are proposed by the Warnings in order to palliate the deprecation of `int`.\r\n\r\n    map(Int, x)\r\n    round(Int, x)\r\n    parse(Int, x)\r\n    Complex((Int64)(real(z)),(Int64)(imag(z)))\r\n\r\nThe fact that there is at least four different nonobvious constructs needed to replace `int` should point out to the need for such a function.\r\n\r\n"}}