This very helpful answer
https://tex.stackexchange.com/a/582444/239563
describes a way to avoid a double superscript error by including an empty group:
${{}\dot{y}^a}^\top$
My question is: is there any danger in always including an empty group whenever some "accent" like \dot or \bar is used? Are there cases where this has undesirable consequences in a different situation?
(I'm asking because in my case, the LaTeX code is automatically generated, and either my code does it, or the user has to take care of it by using a special instruction of my program.)
Thanks a lot for your help!


$\dot{y}+\dot{x}$where would you add empty groups? (in the example you add the{}within a group holding a superscript) – David Carlisle Oct 08 '21 at 06:58