Skip to content

NifEncoder::encode should return a Result<NifTerm, Error> instead of just NifTerm #1

@hansihe

Description

@hansihe

As is, it is impossible to fail gracefully in NifEncoder::encode. This is a big design flaw, as things like allocation errors can happen when encoding a value.

When that is done, all existing encoders should be changed to fail gracefully instead of panicking.

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