Skip to content

Support numeric upcast of bool #193

@achidlow

Description

@achidlow

In comparisons and binary operators with UInt64 and BigUInt, bool type can be supported as the other operand, treating True as 1 and False as 0. This is consistent with Python types such as a int:

assert (1 + True) == 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions