-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Description
julia> Base.tryparse(Int,'1')
ERROR: MethodError: no method matching tryparse(::Type{Int64}, ::Char)
Closest candidates are:
tryparse(::Type{T}, ::AbstractString; base) where T<:Integer at /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/base/parse.jl:235Is there a reason not to define such a method? Base.parse works:
julia> Base.parse(Int,'1')
1Metadata
Metadata
Assignees
Labels
No labels