Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for omitting braces in initializer lists #88

Open
iphydf opened this issue Feb 17, 2022 · 1 comment
Open

Add support for omitting braces in initializer lists #88

iphydf opened this issue Feb 17, 2022 · 1 comment

Comments

@iphydf
Copy link

iphydf commented Feb 17, 2022

Language.C should support this:

struct Foo {
  char arr[3];
};

struct Foo foo = {0};

It's more error-prone in deeply nested structs to be adding each of the layers manually. All C compilers support this.

@expipiplus1
Copy link
Collaborator

expipiplus1 commented Apr 6, 2022

I'd happily merge a patch implementing this with tests of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants