As I discovered through the non-bug latex/4253, TeX has a (mis)feature whereby it ignores braces around a \mathaccent construction: ${a_b}_c$ works, but ${\tilde a_b}_c$ fails with a "Double subscript" error. Braces in {a_b} turn that into an atom, which can receive a second subscript, but braces in {\tilde a_b} have no effect. See a question about why this happens for details.
Since ${{}\tilde a_b}_c$ works fine (TeX keeps the surrounding braces), I am wondering whether defining \tilde as {}\mathaccent... rather than \mathaccent... would be better. Will such a leading brace group have any ill effect on spacing (or other things)? Is there a better definition that would not result in confusing double superscript errors?
EDIT: Several commenters ask me incredulously why anyone would want this. I couldn't come up with a good case for double subscripts, only for double superscripts: the square of the derivative of b is typeset {b'}^2 or b'{}^2. What about the square of the derivative of \tilde{b}?

Here, it is possible to get a decent result with \tilde{b}{{}'}^2 (line marked with a star), but I don't think the input is natural. For an example that makes things worse, say \widetilde denotes the Fourier transform, and that I want to take the Fourier transform of b(t)/t, then take its derivative squared. Naturally I would type {\widetilde{\biggl[\frac{b}{t}\biggr]}'}^2. Instead, I need to type \widetilde{\biggl[\frac{b}{r}\biggr]}{\vphantom{\frac{b}{r}}'}^2 or something like that...
That said, I am mostly interested in knowing if adding {} to the start of the definition of \tilde (and \widetilde) would mess up math spacing.


{}\tildeis not 'nice'. – Joseph Wright Jun 06 '13 at 07:19${a_b}_c$or${{}\tilde{a_b}}_c$should mean, to begin with, and how a reader should parse the result. – egreg Jun 06 '13 at 09:48$\tilde a_{b_c}$? (it does differ in appearance.) – barbara beeton Jun 06 '13 at 12:57'being a superscript, it is easy to encounter cases of double superscripts with variations ofb'^2. – Bruno Le Floch Jun 07 '13 at 08:56\tilde{b}'^2works and this is, AFAIK, the normal way to typeset derivatives squared;{\tilde{b}'}^2doesn't work, but even if it did, the result would give a "prime squared" that's meaningless (sixth line in your example). – egreg Jun 07 '13 at 09:05\tilde{b}'^2simply works because'does some magic that I had forgotten. This would fail with\tilde{b}'_i^2, which could easily happen ifbis a vector (of course, interchanging subscript and superscript works but is very far from the semantics). I disagree that you would get "prime-squared": what is squared is the whole derivative, which is meaningful. – Bruno Le Floch Jun 07 '13 at 09:50\tilde{b}'_i^2is the only example so far that I might find convincing; I didn't have time to think about it yet. By the way, I agree with egreg about the "prime squared": in the sixth line of your example, it clearly looks as if the prime is squared (even if the TeX markup speaks diffenrently). A simple\tilde{b}'^2is much better. – Hendrik Vogt Jun 07 '13 at 20:09