Skip to content

Allow lambdas only as arguments or default values of parameters #409

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem? Please describe

Lambdas can currently be used as arguments and results of functions. We don't have a good use case for the latter, but it makes static analysis more difficult, since lambdas are closures.

Desired solution

Allow lambdas only as arguments and as default values of parameters. We can relax this later if the need arises to return lambdas.

Metadata

Metadata

Assignees

Labels

dsl 🗒️Issues regarding the domain specific programming languagereleasedIncluded in a releasevalidation ✔️Improved or new static checks

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions