metaclay2
Thanks, my next question is : if set() can also use static value the what is the benefit of using {} ? or If the value is just static then what makes the {} preferable compared to set() ?
Hello,
Using set() function should result with a run-time evaluation of values provided inside, no matter if they are static or dynamic.
When working with static values, curly braces {} are preferred as they do compile-time evaluation. This means that they will get computed once when the VEX code is compiled, and will not be computed again when the VEX code is running. This can save memory and time for run-time.
If you search "compile-time vs. run-time evaluation" on internet you can find a lot of questions/answers about this topic, as this is a generic programming question.