-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Help WantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
Delete would remove an object or identifier from memory.
Use case:
const somethingNoLongerUsed: int = 10;
delete somethingNoLongerUsed;However, this comes with a side effect:
const myObject: Obj = {};
const myReference: Obj = Obj;
delete myObject;
print!(myReference); // Dangling pointer, pointing to unknown referenceI plan on having built in memory safety, similar to rust, but at the compile level. However this is still an issue with delete.
Metadata
Metadata
Assignees
Labels
Help WantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested