Christian Couder <chrisc...@tuxfamily.org> writes:

> For example some people might want:
>
>     if_exists = overwrite
>     if_missing = add
>
> while others might want:
>
>     if_exists = overwrite
>     if_missing = do_nothing
>
> and I don't see how we can say that with just:
>
>     action = do_Y_if_X_and_Z

Yes, but then we go back to my original question: why exists and
missing are so special, and why there aren't two kinds of exists
(i.e. "there exists an entry with the same <key, value>" vs "there
exists an entry with the same <key>").  I would have understood your
"this is not too hard to understand for users" if you had three
(i.e. "missing", in addition to these two flavours of "exists"), but
with only two, I do not see how it is useful in a hypothetical
situation like above.

For example, how would you express something like this only with
"if-exists" vs "if-missing"?

        if_exists_exactly = ignore
        if_exists_with_different_value = append
        if_missng = prepend_to_the_beginning
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to