4 ms·
From article: > A lot of you now are thinking about making custom struct with named fields, than and passing typed result as this struct. This is good solution
by allending 11y ago
From article:
> A lot of you now are thinking about making custom struct with named fields, than and passing typed result as this struct. This is good solution and there are a lot of cases when this will be actually better, but … this is not so simple. But what if you know that this temporary structure is rather limited in size and will be used just ‘here’ to pass results...
I'd still use a custom struct with named fields. I don't see the above being anywhere close to justifying the additional complexity.