Skip to content

Suggestion: switch 'const' to 'using' where possible #1858

@johndeighan

Description

@johndeighan

I'm not sure if this is possible, but if so, that would be great:

When using either: const name = new SomeObject() or name := new SomeObject(), output using instead of const if the object has a [Symbol.dispose] key

That would ensure that an object's [Symbol.dispose] method is always called when the object goes out of scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions