Skip to content

track? preserve? for variables dervied from other parameters #14

Answered by tomyun
oralb asked this question in Q&A
Discussion options

You must be logged in to vote

The choice between preserve and track boils down to intended behaviors of the variable that is declared. Generally, the most of preserve variables are used as parameters, but then there are still some less common cases where we want non-parameter preserve variables, e.g., automatically derived parameter or static assignment of external value. You can then create a preserve variable with computational logic, but track also should be able to do the same work as you mentioned.

In such case, I'd recommend using track. There is a chance that its depending parameters later replaced by some dynamic variables after systems composition, leading to an unexpected logical error hard to be caught up.

T…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tomyun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants