# Sema: cap depth of value printing in type names · gitcafe/zig

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

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

Visibility: public

Requested revision: 21a6a1b0f2d7241594a9aa123e48cf2e3ebaccb9

Requested commit: 21a6a1b0f2d7241594a9aa123e48cf2e3ebaccb9

Commit: 21a6a1b0f2d7241594a9aa123e48cf2e3ebaccb9

Tree: 106fe6c9dfc11e73b3b3f04e5cc43d93b3da4685

Author: mlugg

Committer: Andrew Kelley

## Message

```
Sema: cap depth of value printing in type names

Certain types (notably, `std.ComptimeStringMap`) were resulting in excessively
long type names when instantiated, which in turn resulted in excessively long
symbol names. These are problematic for two reasons:

* Symbol names are sometimes read by humans -- they ought to be readable.
* Some other applications (looking at you, xcode) trip on very long symbol names.

To work around this for now, we cap the depth of value printing at 1, as opposed
to the normal 3. This doesn't guarantee anything -- there could still be, for
instance, an incredibly long aggregate -- but it works around the issue in
practice for the time being.

```

## Parents

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

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