Hi Joe

I think the first oddity you're encountering here is due to the fact that when 
you're editing a tiddler you're actually interacting with a "draft", an 
entirely separate tiddler that only overwrites the target tiddler when you 
click the checkmark when you've finished editing.

We use separate draft tiddlers so that we can cancel attempts to edit a tiddler 
without disturbing the original one.

> Right imagine my joy/horror when I discover that
> 
>     <$set name=x value=abc>
>          body
>     <$/set>
> 
> means
> 
>     let x = "abc" in
>         ...
>     end
> 
> And part of me cries out 'what's wrong with PHP' ie why can't I write
> 
>     <?
>        x = "abc";
>        ...
>     ?>
> 
> Or just some inline JS

The underlying structure of TiddlyWiki's rendering tree is just a tree; we can 
compile any syntax into the existing primitives, including that PHP-like syntax.

I reuse the HTML syntax for widgets to simplify things: it's actually the other 
way around, HTML elements are just special cases of widgets. The design of TW5 
tries to use the minimum number of primitives needed to support the required 
complexity. There's a version of your process of determining that two things 
are sufficiently similar that they can be merged. It's a deep principle in TW5, 
we endlessly reuse the same mechanisms for everything.

The main reason that I didn't choose JS or a similar language is because 
TiddlyWiki isn't for developers. Software developers are already incredibly 
well catered for by the open source world and I'm more interested in exploring 
how we can empower civilians...

> I'm torn between the joy of what I can create with the TW since I've seen all 
> these amazing examples
> and the peculiarities of the syntax.

Yes indeed, although I think the peculiarities stem rather naturally from the 
principles and context that underpin the design. For example, the filter syntax 
was devised so that a degenerate filter was just a list of titles with double 
square bracket quoting. That idea leads pretty directly to the present syntax.

Best wishes

Jeremy


> 
> Cheers
> 
> /Joe
> 
>  
>> J, x
>> 
>> joearms wrote:
>>> 
>>> Solution:
>>> Wrap the button code in a fieldmanger ... 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" 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 https://groups.google.com/group/tiddlywikidev.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/c9f1ae84-dc4c-43ba-8982-4bc8780894dc%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/E7FB4E9D-6FE3-437B-B3A0-4AF2A99C8715%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to