Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result type #84

Open
MeAmAnUsername opened this issue Oct 14, 2020 · 2 comments
Open

Result type #84

MeAmAnUsername opened this issue Oct 14, 2020 · 2 comments
Assignees
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

Comments

@MeAmAnUsername
Copy link
Owner

MeAmAnUsername commented Oct 14, 2020

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> and errorResult(error: E) -> result<Object, E>
built-in methods on results: isOk() -> bool

@MeAmAnUsername MeAmAnUsername added Type: enhancement New feature or request Component: DSL Something that concerns the design of PIE DSL Component: code generation Something that concerns the generated code Priority: high Status: in progress Component: integration Integration of generated code with the environment labels Oct 14, 2020
@MeAmAnUsername MeAmAnUsername self-assigned this Oct 14, 2020
@MeAmAnUsername MeAmAnUsername changed the title Built-in result type Result type Dec 22, 2021
@MeAmAnUsername
Copy link
Owner Author

Changed from built-in to library type. Will be possible when #24 is finished.
See also #7.

@MeAmAnUsername
Copy link
Owner Author

#24 has been merged, now just need to figure out how to create a library (#7) and if it should be added by default (#251)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant