Fixed more ternary concatenation bugs#9462
Conversation
Eval order is from left to right which can lead to undesired effects when the right side has a ternary operator. This puts the ternary operation in braces (or avoids the situation by other means)
neilcsmith-net
left a comment
There was a problem hiding this comment.
LGTM. Thanks. A nasty hidden one this. Hopefully nothing is relying on the wrong behaviour! 😆
matthiasblaesing
left a comment
There was a problem hiding this comment.
Looks good to me.
Side question: Would you mind elaborating how "I ran" works in practice?
of course! you can simply put the above mentioned rules it into a hint file (e.g But I like to put reuseable rules into Running a hint file will open the "inspect and transform" refactoring dialog and ask you about the scope. I have a project group with all NB modules, so i selected "all opened projects" and ran it. (warning: can take little while since its a lot of modules) |
inspired by #9459
I ran:
Eval order is from left to right which can lead to undesired effects when the right side has a ternary operator.
This puts the ternary operation in braces (or avoids the situation by other means)