The reason why i asked has more to do with removing same selector/method functionality out of the jQuery core than advocating for selectors. I see no reason to keep parallel functionality in the core.

As for your example couldn't you do something like

var c = a+b; $("...:lt(c)");

Using a method you would have to do that so you save some bytes.

I don't care if i have to use a selector or a method, i agree with you methods come more natural for long time programmers, i'm just trying to understand why some functionalty decisions are made.

-- David

Stephan Beal schreef:
You can do more with a selector in SOME contexts, and only after
converting your data to a string. For me, this is far more intuitive:

$(...).lt(a+b)

than:

$("...:lt("+(a+b)+")")


Reply via email to