You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there's a case to be made for the safety of increment/decrement operators when used as statements. @rwaldron What do you think?
As for the actual implementation, given that plusplus: trueenables the restriction, I think the most logical configuration value (that also maintains backwards compatibility) would be plusplus: expr.
I'm fine with any option names. My original suggestion was that true means the original and the most restricted mode and the new option (such as expr or simple) allows usage in certain places.
It would be nice to have an option for
plusplus
which allows use cases such asor
But it should complain about this:
So I suggest that there are three modes:
false
,strict
/true
orsimple
that allows usage when not in complex expressions.Especially that looping case is so common that there should be option to allow it although it would be elsewhere forbidden.
The text was updated successfully, but these errors were encountered: