Skip to content

Safe Memory Allocation #114

@DavePearce

Description

@DavePearce

At the moment, any code (be it in a function, method or other) can fail with an out-of-memory exception. Its not clear how best to resolve this:

  • We could update the return type of anything which could cause a memory allocation. But, even a simple assignment can cause a memory allocation (i.e. its if a copy)!
  • Another option is to have an exception mechanism for certain runtime faults like this. Then, we can catch such exceptions and deal with them for error recovery.

See this RFC in Rust, as one possible example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions