Suppose you have a direct sum of two terms $A$ and $B$: $$ A \oplus B.$$ Now suppose that in fact $B = \bigoplus_i B_i$. Then I guess we could write the above sum as $$ A \oplus \bigoplus_i B_i.$$ However, this looks terrible -- much worse than, for instance, $$ A \bigoplus_i B_i. $$ Is there a precedent to writing the latter, or some other notation better than the former?
Cheers.
P.S.: what about when B is a direct product instead of a direct sum?
I think $A \oplus \left( \bigoplus_i B_i \right)$ is the least bad-looking and also least ambiguous option. I think $A \bigoplus_i B_i$ is going to be confusing to parse. The two uses of $\oplus$ in $A \oplus \left( \bigoplus_i B_i \right)$ are referring to two different uses of the direct sum operation and the notation should reflect that. Similarly for ordinary sums I would write
$$a + \sum_i b_i$$
and not attempt to somehow collapse the $+$ and the $\sum$ into a single symbol. In the case of a direct product you can write $A \oplus \left( \prod_i B_i \right)$, of course.