Remix.run Logo
simjnd an hour ago

But the capture is conditional so it makes sense.

if (evaluation) result = evaluation

if (evaluation) |result|

Although assignments as expressions in C are convenient, I don't think they make a ton of sense and find Zig's capture easier to read (easier to immediately see what's being evaluated)

ulbu an hour ago | parent [-]

if |result| (evaluation)