Enrico Forestieri wrote:

> Nope. That will only occur if the size of the nucleus is 1, but then it
> doesn't matter as latex macros don't need braces around a single token
> argument.

Yes, you are right, I mixed that up.

>> This will also create undo/redo problems, since undo/redo in math goes
>> through the text representation.
> 
> I could not discover any. Do you have some example?

No, this is so far only a theory based on past experiences. I expect
problems in the following situation:

- do something that you want to undo (e.g. cut). The cursor must be in a
brace inset that will not be restored after undo because of the removal of
superflous brace insets.
- undo

Now you will either get an assert, or a warning on the console that the
cursor is broken and will be fixed.

I don't know if such a scenario is possible in reality, but what I know is
that asArray(asString(ar)) == ar should hold for any MathArray ar. That is
not the case if brace insets are removed.


Georg

Reply via email to