Disregard this post. My understanding of how the vars widget behaves is based on the TiddlyWiki.com documentation, and come to find out the documentation is wrong.
The documentation misleadingly suggests that variables and macros behave the same, and they do not.
You will become a better TiddlyWiki programmer when you understand that thisYear is not 2023.
“LET” helps to identify when I’ve got some variables that depend on other variables.
“VARS” helps to identify when I’ve got some variables that do not depend on each other.
These are handy visual cues to help me with challenges to process details, and otherwise help in documenting code regardless of cognitive ability. For those who like that kind of thing.
By themselves, the snippets are not parsed as WikiText. However, a variable reference will transclude a snippet into a context where WikiText parsing may be occurring. Within a snippet, the only markup detected is $name$ for a macro parameter transclusion and $(name)$ for a variable transclusion.
But that is bunk. True for macros, but not for variables. Case in point, the following sample code:
The first line assigns <<now "YYYY">> as a literal string to the variable thisYear2. The second line assigns the result of immediately evaluating <<now "YYYY">> as a string to the variable thisYear1.
Most macros are in fact just parameterised variables.
They are created using the \definepragma. (Behind the scenes, this is transformed into a $set, i.e. macros and variables are two sides of the same coin.)
Quite possibly, someone put in a lot of effort to write a good piece of documentation. I know from experience that it is not easy to formulate everything well and without mistakes. Your criticism would be more constructive if you proposed improvements instead.
I rely heavily on written documentation to understand things. Having to ask questions all of the time is a cognitive overload problem.
And I get really upset when my understanding of something is not right. That’s usually way over the top because of my cognitive disabilities.
So when the documentation I depend on leads me astray, I get besides myself upset. because I get very overwhelmed when something I thought I understood, I completely misunderstood. It turns into "everything I understood is wrong.
So that’s where I’m coming from. I know it makes no sense, but I can’t stop the brain from going there.