If the second example is actually the preferred syntax, then is there any reason not to rearrange and make it the first example (and then mention in a minor way that you could do the same thing another way that is less efficient)?