Skip to content

Zel autoclose functionality. #5

Description

@zolyfarkas

This functionality is similar with Golang defer, java Try with resources, but it will be simpler to use.

{
auto(close) a = new FileInputStream();
auto(close) b = new FileInputStream();

}

should be closed at the end of the block.

the more general differ pattern can be implemented as well:

{
a = new FileInputStream();
defer a.close();
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions