Hi Jeremy and Tobias,


I always expect *has[foo]* to contain tiddlers even if the value of *foo* is empty.
I guess that's just me.

I agree that it’s strange. Looking at the code, the extra check for the field being empty was added explicitly in January last year:

https://github.com/Jermolene/TiddlyWiki5/commit/1c283c55865b3b128101c26f60d594313764c621


It's true that it's a bit counter-intuitive, but I would assume that it's more common to use "has" or "get" in order to do something with the field value, and in these cases it's more convenient not to have to check if the value is empty before using it. That's how I interpreted it at least ;)

It’s too late to change the semantics of the existing operator, but I’d certainly be interested in backwards compatible ways of addressing the problem in the original post.

the first idea that comes to mind is to add a field operator "empty[f]" (or "empty-field[f]"), which keeps the tiddlers as input only if they have a field "f" with an empty value (removes both the ones which don't contain a field "f" and the ones in which "f" has a value).

Cheers
Erwan


Best wishes

Jeremy


Best wishes,

— tb

--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/58c12440-3be6-4a19-9281-87836d92954c%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/58c12440-3be6-4a19-9281-87836d92954c%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0C4C6B4E-34AE-42EC-8D9B-5BFDD81B30E1%40gmail.com <https://groups.google.com/d/msgid/tiddlywiki/0C4C6B4E-34AE-42EC-8D9B-5BFDD81B30E1%40gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/56429A85.5040902%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to