[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] Match/Context naming
|
+1
I intentionally left out the rationale for the proposal I made to see
if the names alone were clear enough :)
Query and MatchQuery works for me.
- henrik
25 feb 2010 kl. 10.04 skrev Thomas Hallgren <thomas@xxxxxxx>:
On 02/24/2010 11:07 PM, Henrik Lindberg wrote:
How about just Query, and IterativeQuery?
And which one is which :-) ?
createIterativeQuery as in:
"Creates a query that will iterate over all candidates and apply the
given *boolean expression* on each"
OR
createIterativeQuery as in:
"Creates a query using an *expression that will iterate over its
input*"
Ian and I discussed the naming on IRC. What we concluded is close to
what you propose here (assuming the first interpretation of
iterable). We agreed that since one of the queries is a short form
of the other, i.e. the boolean expression "<bx>" can always be
written as the full query "select(x | <bx>)", we can loose the term
'context'. The term 'match' then becomes useful to denote the short
form. That means that:
createQuery(expression)
"Creates a query using an expression that expects full access to all
candidates"
createMatchQuery(matchExpression) "Creates a query that will iterate
over all candidates and discriminate by applying the boolean
matchExpression on each candidate"
I'm content with these names and explanations. Do they sound OK to
everyone?
- thomas
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev