# std: remove meta.trait · gitcafe/zig

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

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

Visibility: public

Requested revision: d5e21a4f1a2920ef7bbe3c54feab1a3b5119bf77

Requested commit: d5e21a4f1a2920ef7bbe3c54feab1a3b5119bf77

Commit: d5e21a4f1a2920ef7bbe3c54feab1a3b5119bf77

Tree: 01d6459250665626691593e3a52f774f30e98c81

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: remove meta.trait

In general, I don't like the idea of std.meta.trait, and so I am
providing some guidance by deleting the entire namespace from the
standard library and compiler codebase.

My main criticism is that it's overcomplicated machinery that bloats
compile times and is ultimately unnecessary given the existence of Zig's
strong type system and reference traces.

Users who want this can create a third party package that provides this
functionality.

closes #18051

```

## Parents

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

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