On Thu, May 6, 2021 at 6:15 PM Mohammad Rahmani <[email protected]>
wrote:

> It Seems Tiddlywiki has a total liberty in naming rules.
>
> Open Tiddlywiki and put this code in a Tiddler! See all of them world!
>
>
> \define .() test
>
> Hi. This is <<.>>
>
> <$vars
>  _var   =Hi
>  1var   ="Hello"
>  fr.var ="Salut"
>  .      ="Salve"
>  )*&    = "konnichiwa"
>  !var   = "Olá">
>
>  * _var: <<_var>>
>  * 1var: <<_var>>
>  * fr.var: <<fr.var>>
>  * . : <<.>>
>  * $*&): <<)*&>>
>  * !var: <<!var>>
>
>  </$vars>
>
>
> Strangely (or amazingly!!!) all of them work! You can even name a variable
> like  *)*& *
> Is this a sign of pure forgiveness? Or something has been forgotten? Or
> this is a design philosophy?
>
> While most users do not need in depth scripting but I believe most of the
> above are error prone!
>
> What do you think? I think we need some coding conventions? Some good
> practice at least!
>


This is absolutely bad practice! I believe TW should raise warning for
these specially names like ,
or even the worst case $*&)

>
>
>
>
> Best wishes
> Mohammad
>
>
> On Wed, May 5, 2021 at 7:23 PM Atronoush Parsi <[email protected]>
> wrote:
>
>> I have followed recent discussion on naming the fields or tiddlers in the
>> Google Forum! I wish to know are there recommendations for this?
>>
>>
>>    - tiddler name
>>    - field name
>>    - macro name
>>    - variable name
>>       - by $set
>>       - by $vars
>>       - by $list
>>       - by $wikify
>>       - css selector
>>    - global and local
>>
>>
>> I am not sure but I assume Tiddlywiki does not have support for
>> namespace! but I see TW honors scope of variables!
>>
>> I was complaining about the currentTiddler name! Now I understand how
>> much it is meaningful! albeit with TW 5.122+ specially in TW 5.1.23 and
>> 5.1.24p we have much more flexibility in scripting
>> but the default is very meaningful!
>>
>> I see from TW official docs and codes, it uses
>>
>> tv- prefix for variable
>> tc- prefix for some CSS selectors
>>
>>
>> How can we use a *naming rule* to develop more readable scripts and
>> wikitexts?
>>
>>
>> I appreciate your advice!
>>
>>
>> --Atro
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/CAKHVXmqmwSkk%2B5Zq%3D81voVE%3DJQVM6U11ucpaLpbw14YCRhUD7Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/tiddlywiki/CAKHVXmqmwSkk%2B5Zq%3D81voVE%3DJQVM6U11ucpaLpbw14YCRhUD7Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAjiKK%2B9Lis-bA1sShFMOLfmu%3DBZAwveDYNqb2tbtH7Cw%40mail.gmail.com
> <https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAjiKK%2B9Lis-bA1sShFMOLfmu%3DBZAwveDYNqb2tbtH7Cw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAKHVXmrUr5qorHfmfM%2B8anCxZ9nC8DzLE_oEdg7F-Pb%3DDtnAUw%40mail.gmail.com.

Reply via email to