Skip to content

Semantics of closure return #55

Open
@ltratt

Description

@ltratt

If I have a method along the lines of:

m = (
    [ ^nil ] value.
)

the closure, when invoked, will return from the method. It's already defined that such closures aren't allowed to call "return" if they've escaped from the method. Are there any other restrictions e.g. if you have a multiply nested closure such as:

m = (
    [ [ ^nil] value ] value.
)

must it be at least 2 frames deep for the return to be valid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    specNeeds specification, or is specification related.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions