SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Generate TryInsert methods for C# modules

Open joshua-spacetime opened this issue 10 months ago • 1 comments

C# doesn't generate TryInsert methods. See module-test-cs.

joshua-spacetime avatar Feb 09 '25 04:02 joshua-spacetime

This is part of the intended design (for what that's worth; it's totally fair to criticize the intended design). My belief is that try_* methods are only necessary in Rust, where panicking is distinct from returning an error; in C#, both are encompassed by throwing an exception, so you only need one method.

gefjon avatar Feb 09 '25 04:02 gefjon