For context, I just now merged more posts from a related thread to the one that @tensorush linked to. I had a very interesting discussion with @slonik-az on this topic that has been added to the bottom of that linked thread.
(@slonik-az hopefully you don’t mind that I moved the comments over - just trying to keep things tidy )
@AndrewCodeDev : Thanks for consolidating all discussions on this topic into a single thread. Easier to read it all in one place rather than scattered around.
BTW, I think this question belongs to FAQ. Struct literals are quite unique feature of Zig not found in other languages and it is very easy to get them wrong. They are rather different beast than number or string literals and internalizing it takes some effort.