Result type #84
Labels
Component: code generation
Something that concerns the generated code
Component: DSL
Something that concerns the design of PIE DSL
Component: integration
Integration of generated code with the environment
Priority: high
Status: in progress
Type: enhancement
New feature or request
Add a type
result
. Basically the same as the built-in supplier and list.Syntax:
result<T, E>
, e.g.result<string, Exception>
built-in functions
okResult(value: T) -> result<T, Exception>
anderrorResult(error: E) -> result<Object, E>
built-in methods on results:
isOk() -> bool
The text was updated successfully, but these errors were encountered: