Hi Axel,
Thanks for the explanation, it makes sense. Yes, I think it would be a good
case for a `vet` warning.
On Monday 6 May 2024 at 15:35:02 UTC+1 Axel Wagner wrote:
> Hi,
>
> I'll note that this has nothing, really, to do with the loop, but with the
> fact that you are assigning a struct f
Hi,
I'll note that this has nothing, really, to do with the loop, but with the
fact that you are assigning a struct field.
For a simpler example, compare this: https://go.dev/play/p/MmR-AhOUQH3 with
this: https://go.dev/play/p/Y1uoI8thYuV
If you only write to the entire variable, the compiler comp