temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Make all errors static

Open Manishearth opened this issue 5 months ago • 0 comments

Over FFI, any allocated errors can't be easily debugged since we return std::string_view (&'static str). This is done to reduce allocations.

The ErrorMessage enum is an attempt to consolidate error messages, but we also have some errors constructed with format!(). Ideally, we should not have any of them.

Potentially we can make the ixdtf errors pure strings as well, they only have a single non-unit variant.

Manishearth avatar Jul 24 '25 04:07 Manishearth