On Wed, Oct 2, 2013 at 1:40 AM, Nico Williams <n...@cryptonector.com> wrote:
> On Tuesday, September 10, 2013, Richard Hipp wrote: > > > SURVEY QUESTION: > > > > The question for today is what to call this magic hint function: > > > > (1) unlikely(EXPR) > > (2) selective(EXPR) > > (3) seldom(EXPR) > > (4) seldom_true(EXPR) > > (5) usually_not_true(EXPR) > > > (1), on account of: it's already used in various programming languages. > However, because o your point below i prefer "likely(<expr>, > <probability>)", perhaps with the probability being required (can the > probability be a non-constant expression?). > In the current beta (at http://www.sqlite.org/download.html) the function is either unlikely(X) or likelihood(X,Y). In the second form, Y must be a floating point constant between 0.0 and 1.0, inclusive. The first form is equivalent to likelihood(X, 0.0625). Additional links: (1) http://www.sqlite.org/draft/releaselog/3_8_1.html (2) http://www.sqlite.org/draft/lang_corefunc.html#unlikely (3) http://www.sqlite.org/draft/lang_corefunc.html#likelihood -- D. Richard Hipp d...@sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users