We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Before:
const foo = @as(T, something); const bar = T{};
After:
const foo: T = something; const bar: T = .{};
This feature has been suggested by @mlugg a while ago but I never found the time to implement it.
Thanks to #2063 it becomes trivial to optionally enable certain code actions to be run on save.
Related ziglang/zig#5038
The text was updated successfully, but these errors were encountered:
Hm. This would be nice to have. If you haven't taken a look by next weekend, I can take a stab at it.
Sorry, something went wrong.
@mlugg Since you know so much about RLS, could you tell me whether the following conversion is also valid?
const foo = T{}; // Before const foo: T = .{}; // After
Yep, T{ ...} is identical to @as(T, .{ ... }), so that's a valid conversion.
T{ ...}
@as(T, .{ ... })
No branches or pull requests
Before:
After:
This feature has been suggested by @mlugg a while ago but I never found the time to implement it.
Thanks to #2063 it becomes trivial to optionally enable certain code actions to be run on save.
Related ziglang/zig#5038
The text was updated successfully, but these errors were encountered: