• mike brockington (5/22/2009)


    I would love to see what this is being compared against, in order to describe this as 'elegant'.

    In my dictionary, elegance requires something to be as simple as practicable, but

    Bitwise comparisons are really inefficient, and extremely hard to debug by eye.

    Hi Mike: I use it loosely here, but let's say comparing to a large string of values, and either parsing a comma separated list or throwing it into an IN and using dynamic SQL. These methods can introduce problems (efficiency, security, etc), so as an alternative I would consider this approach if it fit. Of course, not the solution for every problem.

    Thanks much