SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Implement `SpacetimeType` for `Result<T, E>`

Open gefjon opened this issue 1 month ago • 1 comments

Make it a new "special" type, like Option. Use ok and err (lower-case) as variant names for consistency with SATS Option. This will also require adding codegen support to all our client SDKs.

gefjon avatar Nov 17 '25 18:11 gefjon

Desirable because procedures return SpacetimeType values, and we'd like users to be able to return Result for error-handling.

gefjon avatar Nov 17 '25 18:11 gefjon