In my old code (TW=5.1.23 a legendary TiddlyWiki before 5.2) I used a global variable to keep some state/temp tiddler like below. It is clear and semantic.
\define tempTagPopup() $(tempTable)$/$(currentRecord)$/$(currentTiddler)$
Now I am deprecating them using TW 5.3.4p features, so I replaced the above macro with text substitution with below function:
\function tempTagPopup() [<tempTable>][<currentRecord>][<currentTiddler>] +[join[/]]
Note that I cannot use $let to define the variable.
Is this new script semantic? Share your opinion and let me know your alternative solutions?
Keep in mind that semantic and simple codes are better for maintainability and more understandable to average users.