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.
I'm not sure if this is possible, but if so, that would be great:
When using either:
const name = new SomeObject()orname := new SomeObject(), outputusinginstead ofconstif the object has a[Symbol.dispose]keyThat would ensure that an object's
[Symbol.dispose]method is always called when the object goes out of scope.