Skip to content

[Syntactic Sugar] Infix ternary operator syntax #16

@Argavyon

Description

@Argavyon

Infix syntax for existing ternary operators, and for a future boolean ternary operator, would also make for a great addition, using either javascript-like syntax cond ? a : b (which is common with many other languages) or python-like syntax a if cond else b.

Originally posted by @Argavyon in #14 (comment)

As always, I'm willing to implement it myself if feature is desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions