Re: First item rule

I can see how this would make sense for binding controls. But then other
uses like actions might not be as clear.

One benefit of the first item rule is that it is easy to understand.
Introducing relevance makes things a bit harder.

When relevance matters, you can easily be explicit, with:

    ref="foo[relevant()]"

But I can't say that I have a very strong opinion about the idea at this
point.

-Erik

On Mon, Jul 3, 2017 at 4:32 PM, Steven Pemberton <steven.pemberton@cwi.nl>
wrote:

> Something I've just been bitten by, though I'm not suggesting a change.
>
> The first item rule says that for a single item binding, if a selector
> selects more than one item, the first is used.
>
> Wouldn't it in general have been more useful if it selected the first
> *relevant* item?
>
> Steven
>
>

Received on Monday, 3 July 2017 19:55:13 UTC