Hey all,
The Grok TiddlyWiki updates are coming along. I’m a little behind on my original schedule but am hoping to catch up in the next week or two and get something out for review to the folks who said they were interested.
I have a couple of questions to help me explain everything effectively, especially for @jeremyruston and other folks who were involved in developing the new features, but anyone should feel free to weigh in:
- What’s the reason for needing a
.
in function names to call them directly from filters? At first I was like “well if not, you could confuse them with fields or built-in operators,” but of course fields can also contain periods so this doesn’t help anything, and there’s already the potential for a conflict between fields and built-in operators and the built-in just wins there. - Why does calling a function with
<<angle brackets>>
yield only the first output tiddler? I know that filtered transclusions do the same thing when you use them as attribute values, but angle brackets do this even when placed directly in rendered wikitext. I assume there is either some logical reason or a matter of technical convenience, and would like to be able to explain it. - The new
<% %>
syntax is called “conditional shortcut syntax” in the docs. What, though, do you call an instance of using this syntax? I’ve been saying “a conditional expression,” or “conditional inclusion,” but I’d love to avoid making up terms that other people in the TiddlyWiki community don’t agree with. (draft tiddler) - Similarly, when you put a
.
in a function or widget name, is there an established name for this? I’ve been calling it “namespacing,” because I am in the habit of prefixing things with an abbreviation for the name of my wiki or plugin, especially as a way to avoid name collisions. But technically everything remains in the same namespace, so I’m not sure if there’s a better way to describe it.
Thanks!