Where .Pages ".Params.foo" OR where .Pages "Params.foo"

Both work and the documentation is inconsistent, even on the same page.

I would like to make the documentation consistent. Which should I use?

Looking for a best practice and future proof recommendation from @bep or @moorereason.

(opinion) I am pretty sure it’s an either/or thing. The dot in the beginning is implied if missing or ignored if there. Like in index .Something "blafasel". I have it all over the place with and without dot. Let’s decide for one variant (I am for the one without a dot, so it’s more like the index function and logically sound “where the params.foo sub-array of .pages is this or that”).

I agree with @davidsneighbour. The dot-prefix is stripped off the string, anyway. It’s been that way since v0.13 back in 2014, and I don’t see us ever breaking it.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.