Skip to content

parse(Bool, s::String3) giving InexactError #57

Closed
JuliaLang/julia
#47782
@anandijain

Description

@anandijain
julia> using InlineStrings

julia> String3("0")
"0"

julia> parse(Bool, String3("0"))
ERROR: InexactError: Bool(10)

julia> parse(Bool, String(String3("0")))
false

is this expected to work? It was confusing hitting this when working with a DataFrame

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions