Skip to content

Commit b367bb9

Browse files
committed
Address adding associated values
1 parent d3da8bb commit b367bb9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

proposals/NNNN-extensible-enums.md

+7
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,13 @@ Enums can be used for errors. Catching and pattern matching enums could add
259259
support for an `@unknown catch` to make pattern matching of typed throws align
260260
with `switch` pattern matching.
261261

262+
### Allow adding additional associated values
263+
264+
Adding additional associated values to an enum can also be seen as extending it
265+
and we agree that this is interesting to explore in the future. However, this
266+
proposal focuses on solving the primary problem of the unusability of public
267+
enumerations in non-resilient modules.
268+
262269
## Alternatives considered
263270

264271
### Only provide the `@extensible` annotation

0 commit comments

Comments
 (0)