mirror of
https://github.com/logos-messaging/specs.git
synced 2026-01-02 14:13:06 +00:00
results may return void
This commit is contained in:
parent
5bb37c24dc
commit
a0700f0730
@ -51,7 +51,7 @@ An alternative would be to choose a programming language. However, such choice m
|
||||
- Complex pre-defined types are:
|
||||
- `struct`: object and other nested types.
|
||||
- `array`: iterable object containing values of all the same type.
|
||||
- `result`: an enum type that either contain a return value (success), or an error (failure); The error is left to the implementor.
|
||||
- `result`: an enum type that either contains a value or void (success), or an error (failure); The error is left to the implementor.
|
||||
- `error`: Left to the implementor on whether `error` types are `string` or `object` in the given language.
|
||||
- Usage of `result` is RECOMMENDED, usage of exceptions is NOT RECOMMENDED, no matter the language.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user