On Sunday, March 8, 2015 at 9:57:42 AM UTC-7, Neil Griffin wrote:
>
> If the $ is needed in some cases, is there an argument for allowing it for 
> all widget parameters to improve consistency?
>

Respectfully, that makes *no* sense!  There is a need to differentiate 
parameters with the same name that are to be handled differently (e.g., 
"$tiddler" vs. "tiddler").  If all widget params have a $ prefix, we'd 
still need to invent *another* way to differentiate the parameters.

Also, if *all* widget parameters use the $ prefix, then why have the prefix 
at all?

As an example of the result of the confusion caused by inconsistency, a 
> couple of times I have neglected the $ in the $tiddler and $field 
> parameters of a $action-setfield widget, with the result that, when 
> activated, the action defaulted to the text field of the current tiddler, 
> overwriting all the text I was working on!  That's extremely annoying, and 
> quite difficult to debug when you no longer have the wikitext that caused 
> the problem!
>

Changing the syntax won't provide a solution for your specific problem, as 
you still need to explicitly differentiate the use of the same parameter 
names, and the underlying cause of the problem is that you *forgot* to do 
that.  Perhaps the better solution is to have a "developer debugging mode" 
setting that would add some extra checks with a prompt to confirm before a 
widget overwrites any data in the store (e.g., "Are you sure you want to 
change TiddlerName!!fieldname?")...  Maybe it can just check for overwrites 
for the "text" field, and be limited to widgets that actually use the 
"$foo" vs "foo" parameter handling, so that it isn't too disruptive during 
development.  Of course, the setting could be turned off after debugging, 
so that real-world use would nto be affected.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

"Inside TiddlyWiki: The Missing Manual"
https://www.indiegogo.com/projects/inside-tiddlywiki-the-missing-

manual/x/8816263
Note: the IndieGogo funding campaign has ended,
but direct fundraising continues below...

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to