# std.enums: add tagName\(\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 5d1e69389c3acbd854cbc56002c1100af5b6e140

Requested commit: 5d1e69389c3acbd854cbc56002c1100af5b6e140

Commit: 5d1e69389c3acbd854cbc56002c1100af5b6e140

Tree: adeb65276f9914c20b3e01af248d9ed252023d25

Author: Travis Staloch

Committer: Veikka Tuominen

## Message

```
std.enums: add tagName()

This is safe alternative to `@tagName()` for non-exhaustive enums that
doesn't panic when given an enum value that has no tag.

```

## Parents

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

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