When is it useful to take the address of a parameter in Zig?

Relevant issue on github: Pass by reference "optimization" copies the entire struct on the stack when taking its address. (this didn't happen in stage1) · Issue #16343 · ziglang/zig · GitHub

2 Likes