Am Freitag, 15. November 2013 10:34:47 UTC+1 schrieb Jeremy Ruston: > > > Like everything else in TW5, the filter syntax is open to change and > extension, but I'll try to explain the current situation. >
That's good. I understand that you don't want to "reinvent" JS or create weird Syntax for it. it contains many gotchas for beginners, and isn't particularly expressive > for the simple cases. > So do I read this correct as "The filters are only suitable for the simple cases"? > As I say, the goal isn't to recreate a programming language; I'd rather > make it simpler for people with that level of sophistication to safely drop > down to JS when they need to. > So as soon as someone wants a filter expressing something like the shown [[one]] [[two]] ( [[three]] +[tag[tom]] ) (S)he needs to fall back to JS? > Why not stick to the logic operators? >> > > Because most people don't understand logic operators. > ;) They use it any nevertheless. Would words make it better? [[one]] or [[two]] or [[three]] and [tag[tom]] But this still leaves the ambiguity of not making clear whether the "and" applies to just the last or all 3. Ah... forget it... I'm too much a programmer I fear ;) Example: I wanted to filter tiddlers with 3 tags, so I wrote: [tag[tag1]tag[tag2]tag[tag3]] instead of [tag[tag1]] + [tag[tag2]] +[tag[tag3]] BTW: Wouldn't that be a nice syntax for "and"? so [[one]] [[two]] [title[three]tag[tom]] would express my first understanding of the + syntax Maybe even, as a short notation: [[one]] [[two]] [[three]tag[tom]] What do you think? -- Stephan -- 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 http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/groups/opt_out.
