Skip to content

Implement predicate syntax #4

Description

@radding

This statement should look like:

(a, b) -> 
    : a > b -> 
        return doSomething();
    : a < b -> 
        return doSomethingElse();
    : true -> 
        return doTheLastThing();
    done;
done;

This is the same as

(a, b) ->
    if(a > b) ->
        return doSomething();
    else if (a < b) ->
        return doSomethingElse();
    else -> 
        return doTheLastThing();
    done;
done;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions