# implement anon struct literal syntax · gitcafe/zig

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

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

Visibility: public

Requested revision: 5b279434986b18d07ceec217c5c402a589ccc0b4

Requested commit: 5b279434986b18d07ceec217c5c402a589ccc0b4

Commit: 5b279434986b18d07ceec217c5c402a589ccc0b4

Tree: eac7bb2993f594bb5471633a92671d9b63833b27

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
implement anon struct literal syntax

This implements stage1 parser support for anonymous struct literal
syntax (see #685), as well as semantic analysis support for anonymous
struct literals and anonymous list literals (see #208). The semantic
analysis works when there is a type coercion in the result location;
inferring the struct type based on the values in the literal is not
implemented yet. Also remaining to do is zig fmt support for this new
syntax and documentation updates.

```

## Parents

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

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