Skip to content

Feature request: making "else" optional #1824

@chancez

Description

@chancez

I think it would really help shorten expressions if the else clause inside an if could be omitted, returning . by default.

For example the following two programs would be considered equivalent:

if .foo then
    .foo = "bar"
else
    .
end
if .foo then
    .foo = "bar"
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions