We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sometimes it could be handy to hide generation of constant literals inside unifex specs, for example to express void procedures, or known error atoms:
void
spec remove_stream(state, stream_id :: unsigned) :: nil spec create() :: {:ok :: label, state} | {:error :: label, :failed}
on ambiguous cases, unifex should raise a compilation error, e.g.:
spec foo() :: {:error :: label, 8} | {:error :: label, 9}
The text was updated successfully, but these errors were encountered:
Currently as a workaround one may use :: label, though note it influences result creators' naming:
:: label
spec remove_stream(state, stream_id :: unsigned) :: (nil :: label) spec create() :: {:ok :: label, state} | {:error :: label, :failed :: label}
Sorry, something went wrong.
Moved to #61
No branches or pull requests
sometimes it could be handy to hide generation of constant literals inside unifex specs, for example to express
void
procedures, or known error atoms:on ambiguous cases, unifex should raise a compilation error, e.g.:
The text was updated successfully, but these errors were encountered: