We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3da8bb commit b367bb9Copy full SHA for b367bb9
proposals/NNNN-extensible-enums.md
@@ -259,6 +259,13 @@ Enums can be used for errors. Catching and pattern matching enums could add
259
support for an `@unknown catch` to make pattern matching of typed throws align
260
with `switch` pattern matching.
261
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
269
## Alternatives considered
270
271
### Only provide the `@extensible` annotation
0 commit comments