exokomodo / exokomodo/daybreak
Add an error type
Open
130: improve error handling
enhancement
- Dominant language
- C
- Stars
- 10
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
Need a simplified syntax for declaring an error type with an embedded struct and an embedded error type.
**Describe the solution you'd like**
Be able to write something like:
```daybreak
type IntErr error is int end
```
Should generate a struct equivalent to
```daybreak
type IntErr struct is
val: int
err: error ? Or maybe int for now
end
```
**Describe alternatives you've considered**
Implementing tuples for argument unpacking. I find that to be confusing and an unnecessary language complication.
**Additional context**
N/A
Contributor guide
Assessment
This issue has not been assessed yet.