# Add support for both '\_' and 'else' prongs at the same time in switch statements · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ba549a7d67d0268cdbd4b23a5b7371de4f2d8d33)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ba549a7d67d0268cdbd4b23a5b7371de4f2d8d33

Requested commit: ba549a7d67d0268cdbd4b23a5b7371de4f2d8d33

Commit: ba549a7d67d0268cdbd4b23a5b7371de4f2d8d33

Tree: 2ee5ed3a9546923fa41abeac193634f88f944d82

Author: Justus Klausecker

Committer: Justus Klausecker

## Message

```
Add support for both '_' and 'else' prongs at the same time in switch statements
If both are used, 'else' handles named members and '_' handles
unnamed members. In this case the 'else' prong will be unrolled
to an explicit case containing all remaining named values.

```

## Parents

- [1d9b1c021273037efea6623e669800ad538c8075](https://git.cafe/gitcafe/zig/commit/1d9b1c021273037efea6623e669800ad538c8075?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ba549a7d67d0268cdbd4b23a5b7371de4f2d8d33?format=markdown)
