example for line breaking in @unpack docstring
tpapp opened this issue · 2 comments
tpapp commented
For struct
s with many fields, the fields should have a linebreak when the coding style precludes long lines. A possible syntax is
@unpack (a, b,
c, d) = container
I am wondering whether the docstring of @unpack
could benefit from an example like this. It is obviously not specific to this macro, but at the same time not trivial to figure out if one does not know the AST details.
Asking your opinion, would be happy to make a PR.
mauro3 commented
Does it not work without brackets? I'm not too fussed about this. But if you feel like it would improve the docs, then go for it.
mauro3 commented
Closing due to inactivity. But feel free to do a PR.