You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
Code generation for tagged unions currently works only when they have at least two cases (otherwise, it generates invalid code). However, tagged unions with fewer than two cases are used in our code and can make sense.
Specifically, we sometimes use them to represent error types for uniformity with those with more cases: one case for a single kind of error, zero if the route cannot give errors.
Code generation for tagged unions currently works only when they have at least two cases (otherwise, it generates invalid code). However, tagged unions with fewer than two cases are used in our code and can make sense.
Specifically, we sometimes use them to represent error types for uniformity with those with more cases: one case for a single kind of error, zero if the route cannot give errors.
Metarpheus generates the usual model:
The zero-case variant (empty
values
) could possibly be just a synonym fornever
.From buildo/retro#107.
The text was updated successfully, but these errors were encountered: