Hi!
In my programming, I had often created a nasty bug with a coding such as
<$action-setfield $tiddler=<<source>> $index=<<memo>> $value=<<value>>/>
where, in fact, the source
variable is empty. This lead the text of the current tiddler to be replaced with something like:
{
"my memo": "my value"
]
and its type being set to json content. Quite nasty, especially erasing your current tiddler code.
I cannot see any real use case where you would set an index to tge current tiddler. If indeed there is none, then it would be best to forbid setting an index if the tiddler is not specified. But if there were such cases, then I would say it would be really welcomed to have a global setup indicating NOT to create an index if the $index
field is either not specified or empty.
(yes, the original bug is my fault, where <<source>>
should not be null. But the current situation just add problems. And since I want a complete liberty in the index name, fields is not an option, for some names are reserved, and I cannot be 100% sure a naming convention will be always respected (such as prefixing name with “@”).)