3 ms·
> I just mean the answer is embeded in the source code and not calculated at runtime. i mod 3 and i mod 5 are just as much embedding the answer in the source c
by madhadron 7y ago
> I just mean the answer is embeded in the source code and not calculated at runtime.
i mod 3 and i mod 5 are just as much embedding the answer in the source code. Saying that the unrolled sequence embeds the answer more than the modulus is the same as saying that
for (i = 0; i < 10; i++)
does not embed the answer to iterating over the integers 0 to 9, but
for (auto i : views::iota(0, 10))
does embed it. I don't think anyone would regard those as anything but equivalent, though.