Skip to content

Inline expression prompts should offer option to show changes#1212

Merged
blairmcg merged 1 commit into
masterfrom
blairmcg/showchanges
Dec 17, 2023
Merged

Inline expression prompts should offer option to show changes#1212
blairmcg merged 1 commit into
masterfrom
blairmcg/showchanges

Conversation

@blairmcg

Copy link
Copy Markdown
Contributor

Whether or not an expression is inlined or assigned to a temporary affects whether or not an inline operation is a true temporary. Inlining the expression may result in an operation being performed multiple times, which will change behaviour if the operation has side effects. I usually choose to inline, and then inspect the result to see whether to undo or not. An easier option would be to choose to see the proposed changes, and then cancel if inlining the expression wasn't the right choice after all.

Whether or not an expression is inlined or assigned to a temporary affects
whether or not an inline operation is a true temporary. Inlining the
expression may result in an operation being performed multiple times,
which will change behaviour if the operation has side effects. I usually
choose to inline, and then inspect the result to see whether to undo or
not. An easier option would be to choose to see the proposed changes, and
then cancel if inlining the expression wasn't the right choice after all.
@blairmcg blairmcg merged commit c0869e7 into master Dec 17, 2023
@blairmcg blairmcg deleted the blairmcg/showchanges branch December 17, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant