Manlio Perillo

Results 73 comments of Manlio Perillo

I found another possible issue: ```console > zig test lib/std/std.zig --test-filter "mem" --zig-lib-dir lib All 157 tests passed. > zig test lib/std/std.zig --test-filter "mem." --zig-lib-dir lib All 138 tests passed....

> Why? I started searching the oldest PR to find if there where some abandoned one. From the title of the PR I thought the `builtin` was referring to the...

> > Comparing SPDX fields is ad-hoc and inflexible. It's prone to forgery, misrepresentation, and depreciation of compliance. > > I am aware of the technical drawbacks, in particular missing...

> i dont think many of these simplifications would be possible since they may rely on type information that `zig fmt` doesnt have access to You are right, but the...

This is the implementation in Go (I linked the Go implementation because the code is probably easier to read and the algorithm also guarantees to run in O(n log n)...

> This would be really easy to implement if #18360 was accepted Thanks for the link. I avoided creating a PR (by converting the Go code to Zig) since one...

> do u have a before/after screenshot? You can just read each commit diff. Just in case there is misunderstanding, this PR does not improve the readability of the *Zig...

@andrewrk, I added multiple commits so that do you can discard the ones you don't like. If the problem is the increase size of langref, you can just remove 2e2c4cf...

@Vexu The compiler works correctly with `0.12.0-dev.2341+92211135` on Linux: ```console test.zig:7:19: error: no field named 'b' in enum 'test.Foo' _ = arr ++ .{.b}; ~^ test.zig:1:13: note: enum declared here...