# Value: add \`intern\` and \`unintern\` to facilitate code conversion · gitcafe/zig

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

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

Visibility: public

Requested revision: 115c08956278b79c848e04c2f4eefca40e6cd8a3

Requested commit: 115c08956278b79c848e04c2f4eefca40e6cd8a3

Commit: 115c08956278b79c848e04c2f4eefca40e6cd8a3

Tree: 8dfdced9bc1ba7499f7660e986bd82d0ae772347

Author: Jacob Young

Committer: Andrew Kelley

## Message

```
Value: add `intern` and `unintern` to facilitate code conversion

This allows some code (like struct initializers) to use interned types
while other code (such as comptime mutation) continues to use legacy
types.

With these changes, an `zig build-obj empty.zig` gets to a crash on
missing interned error union types.

```

## Parents

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

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