Skip to content

Relax type requirement on pc.cond #304

@picklelo

Description

@picklelo

Currently the first argument to pc.cond must be a pc.Var with type bool. However since JS is lax about converting anything to a bool, perhaps we can relax this requirement and just allow anything in.

There's a tradeoff here when we do this stuff implicitly as it may lead to unexpected errors. But if it eases development could be worth it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAnything you want improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions