note
sauoq
<blockquote><em>
It adds generality beyond three strings to compare.
</em></blockquote>
<p>I might give you that if you wrote it that way. <code>for ($b, $c)</code> isn't any more general than my single statement. We'd both have to go change our code if we suddenly had to compare 4 strings.</p>
<blockquote><em>So what do you suggest instead? Your usage of <code>$bits</code> isn't any better, because you don't care about bits, but bytes.</em></blockquote>
<p>I'm not suggesting it's a good name for anything more than a throwaway example, but I wouldn't say it isn't <i>any</i> better. I do actually care about bits as I'm using it with bitwise operators. And the real point is that calling it <code>$mask</code> implies that you intend to use it <i>as a mask</i>. When you don't, confusion results. </p>
<div class="pmsig"><div class="pmsig-182681">
<tt>
-sauoq<br />
"My two cents aren't worth a dime.";<br />
</tt>
</div></div>
969839
969995