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

Zig tracking issue #109

Open
gatesn opened this issue Sep 18, 2023 · 0 comments
Open

Zig tracking issue #109

gatesn opened this issue Sep 18, 2023 · 0 comments

Comments

@gatesn
Copy link
Contributor

gatesn commented Sep 18, 2023

Our wish list for the upstream Zig project!

See https://github.com/ziglang/zig/wiki/Third-Party-Tracking-Issues-(what-is-important-to-other-people%3F) for similar issues from other projects.

For Loop Array Construction

This would be a really nice shorthand for a lot of our comptime work.

const foo: [10]X = blk: {
    const foo_: [10]X = undefined;
    for (0..10) |i| {
      foo_[i] = x(i);
    }
};

// Becomes
const foo: [10]X = for(0..10) |i| x(i);
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

1 participant