Skip to content

Add a return statement? #36

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem? Please describe.
The yield statement is use to pass a value to a result port. It does not end the function and it still runs until the end.

Describe the solution you'd like
A return statement could be added to stop execution of the program prior to reaching the end of the block. It should not assign anything to results but simply stop the function execution.

Additional context
Useless without branching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dsl 🗒️Issues regarding the domain specific programming languagewontfixThis will not be worked on

    Type

    No type

    Projects

    Status

    ✔️ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions