Open Antonboom opened 2 years ago
Hi, I believe part of the problem is that the ref
error has an incomplete SimpleWrapper instance ( its err
field is nil), which will mess up the type mark.
Does the error persist if you add a proper err
to your SimpleWrapper reference?
In any case, I agree the ergonomics are not ideal, so perhaps there's something to improve here.
Does the error persist if you add a proper err to your SimpleWrapper reference?
No, now you won't break it quickly :)
You can close the issue, I don't mind, just expressed doubt. Maybe add an explicit check for the lengths of ref lists?
Hello!
I'm interested in carefree iteration over lists whose lengths can vary:
And I made an example that breaks this code:
Where am I wrong?